Home > Database > Mysql Tutorial > 远程连接mysql_MySQL

远程连接mysql_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:45:01
Original
918 people have browsed it

bitsCN.com

以root权限进入mysql,执行
Sql代码 
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'carmot' WITH GRANT OPTION; 
    FLUSH PRIVILEGES;
 
别的机器就可以连接了
 
Sql代码 
mysql -uroot -pcarmot -P3306 -h10.4.251.154 

作者“yufeng0471”
 

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template