[数据库] - MariaDB登陆错误
2016-04-27 00:00
549 查看
摘要: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <输入新设的密码newpassword>
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <输入新设的密码newpassword>
相关文章推荐
- Navicat(服务器对象) -2之MySQL 或 MariaDB 对象
- ubuntu14.04 安装MariaDB10.0并允许远程访问
- 数据分析系统DIY1/3:CentOS7+MariaDB安装纪实
- MariaDB(MySQL)二进制安装
- Windows上安装Xampp后通过命令行进入MariaDB
- 在CentOS设置MariaDB的开机自启动
- centos 7 安装mariadb
- Mariadb 10.1 joiner节点加入报错WSREP: Failed to prepare for incremental state transfer
- CentOS7.0下安装MariaDB10.1.X最新版本
- Centos 使用YUM安装MariaDB
- MySQL并发复制系列三:MySQL和MariaDB实现对比
- 解决mariadb启动报错
- Linux中mariadb的通用二进制安装及mysql的基本命令
- 二.MariaDB 与MySQL的异同
- 一.MariaDB 与mysql
- MariaDB扩展特性--虚拟列
- MariaDB扩展特性--动态列
- mariaDB
- conflicts with file from package mariadb-libs
- 使用MariaDB数据库管理系统。