博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
给root用户添加远程连接权限
阅读量:6858 次
发布时间:2019-06-26

本文共 770 字,大约阅读时间需要 2 分钟。

环境说明:
 linux as5  mysql数据库主机 IP:192.168.1.1  root/123456
远程主机 windows xp IP:192.168.1.2  
 
一.建立数据库
[root@mail /root]#mysql -u root -p < DATABASE_MYSQL.SQL(TXT)
 
二.连接查看数据库
[root@mail /root]#mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 5.0.22
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> GRANT ALL PRIVILEGES . *.* TO    IDENTIFIED BY '123456'  WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql>flush privileges; (刷新系统表)
 
 
三.客户端登陆
 
 
 
 
 
 
本文转自 pgmia 51CTO博客,原文链接:http://blog.51cto.com/heyiyi/115772

转载地址:http://ffiyl.baihongyu.com/

你可能感兴趣的文章
联想IDEAPAD 320C-15笔记本显卡驱动问题
查看>>
ES6简介
查看>>
全国实时天气预警查询
查看>>
c# WebApi之解决跨域问题:Cors
查看>>
UWP FillRowViewPanel
查看>>
目前的.NET(C#)世界里,主流的ORM框架
查看>>
Java 基础知识点
查看>>
Linux--忘记MySQL密码的解决方法和输入mysqld_safe --skip-grant-tables &后无法进入MySQL的解决方法...
查看>>
vimperator
查看>>
(原創) 如何使用boost::array? (C/C++) (template) (boost)
查看>>
Oracle for Windows 相关下载地址
查看>>
电子书下载:Microsoft Silverlight 4 Business Application Development: Beginners Guide
查看>>
arm 裸奔经验
查看>>
.Net下RabbitMQ的使用(2) -- 发送接收消息
查看>>
2009年云数据库的开发和应用前景(转载)
查看>>
Some key terms of Data Mining
查看>>
咏南中间件更新日志
查看>>
9-1让我想起了学生时代~~
查看>>
谷歌用户体验设计准则
查看>>
LaTeX中的数学公式
查看>>