root权限:给root用户添加远程连接权限



环境介绍说明:
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)

2.连接查看数据库
[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 ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
Tags:  获得root权限 linuxroot权限 ubunturoot权限 root权限

延伸阅读

最新评论

发表评论