安装mysql时的一些问题
2013-04-12 11:11
447 查看
问题如下:
/usr/bin/mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
解决办法:
登陆mysql
如果无法登陆mysql 可以在my.cnf中增加skip-grant-tables;跳过验证,登陆mysql后重新设置一下密码
set password=password('123456');
然后运行
/usr/bin/mysql_secure_installation
进行安全设置就可以了
搞定收工
/usr/bin/mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
解决办法:
登陆mysql
如果无法登陆mysql 可以在my.cnf中增加skip-grant-tables;跳过验证,登陆mysql后重新设置一下密码
set password=password('123456');
然后运行
/usr/bin/mysql_secure_installation
进行安全设置就可以了
搞定收工
相关文章推荐
- MYSQL介绍安装及一些问题解决
- 安装MySQL的一些问题以及解决办法
- mysql5.717以zip安装遇到的一些问题
- linux centOS7安装mysql出现的一些问题和解决方法
- 浅谈Linux 二进制包安装MySQL的一些问题
- 虚拟机linux上源码安装两个mysql的一些问题。
- 阿里云ECS(ubuntu16.04)安装mysql遇到的一些问题
- mysql的安装问题以及一些常用的指令(1)
- mysql5.7.19在centos虚拟机下手动(离线)安装配置过程与一些问题解决办法
- apache+mysql+php+phpmyadmin安装的一些问题
- 在安装apache2,php,mysql开发环境中的一些问题
- 安装mysql过程还有出现的一些问题
- Centos6.6上安装mysql5.6中的一些典型问题
- linux yum安装mysql后要注意的一些初始化问题
- mysql忘记密码,修改密码重新安装的一些问题
- 安装解压版mysql,碰到的一些问题
- CentOS下PHP7的编译安装及MySQL的支持和一些常见问题的解决办法
- mysql5.7 zip安装遇到的一些问题
- mysql的安装及一些常见的问题
- 安装perl和DBI-mysql出现的一些问题