mysql配置相关

#设置mysql外部连接
#任何主机
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;

#指定主机
mysql>GRANT ALL PRIVILEGES ON *.* TO 'jack'@’10.10.50.127’ IDENTIFIED BY '654321' WITH GRANT OPTION;

#然后刷新权限
mysql>flush privileges;

#通过命令启动mysql数据库实例,并通过命令ps观察MySQL数据库启动后的进程情况
./mysqld_safe &
ps -ef | grep mysqld

#当MySQL启动时,会在哪些文件找到配置文件,会用到
mysql --help |grep my.cnf



你可能感兴趣的:(mysql配置相关)