设置Mysql登录信息 How to Set MySQL Root Password 一般shell连接数据库的方法是: mysqladmin -u root password YOURNEWPASSWORD 无登录链接数据库的方法是创建或者修改 ~/.my.cnf 文件 Now create the config file ~/.my.cnf and add configurations below in it (remember to replace mysqluser and mysqlpasswd with your own values). [mysql] user=user password=password 如果你还是用了mysqldump,那么可… Read More