【mysql】配置MySQL,解決安裝過程中的問題
在文章,Centos6.2中mysql的安裝與配置中,使用yum的方式安裝了mysql 。再次安裝的時候跟系統的環境有關係,遇到了不少問題。記錄一下。
yum 安裝 出錯 Error: Protected multilib versions:
file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.73-8.el6_8.x86_64 conflicts with file from package MySQL-client-5.5.48-1.linux2.6.i386
file /usr/share/man/man1/mysqlslap.1.gz from install of mysql-5.1.73-8.el6_8.x86_64 conflicts with file from package MySQL-client-5.5.48-1.linux2.6.i386
解決方案:rpm -e mysql-server-5.1.73-8.el6_8.x86_64 --nodeps
170721 22:25:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
170721 22:25:03 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170721 22:25:03 InnoDB: Initializing buffer pool, size = 8.0M
170721 22:25:03 InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
170721 22:25:03 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
170721 22:25:03 InnoDB: Started; log sequence number 0 1595675
170721 22:25:03 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
170721 22:25:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170721 22:25:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
170721 22:25:24 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170721 22:25:24 InnoDB: Initializing buffer pool, size = 8.0M
170721 22:25:24 InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
170721 22:25:24 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
170721 22:25:24 InnoDB: Started; log sequence number 0 1595675
170721 22:25:24 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
170721 22:25:24 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170721 22:25:37 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
170721 22:25:37 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
安裝完啟動的時候遇到上述問題。
解決方案:rm -rf /var/lib/mysql
登陸mysql
[root@root opt]# mysql -u root password fxq123
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
解決方案:使用mysql -uroot -proot
一旦登入之後,可以修改使用者的賬號和密碼,
檢視使用者授權表:select user,host,password from mysql.user;
給使用者設定密碼:update mysql.user set password=PASSWORD('root') where user='root';
flush privileges;
相關文章
- Mysql安裝過程中遇到的問題及解決辦法MySql
- linux安裝和配置 mysql、redis 過程中遇到的問題記錄LinuxMySqlRedis
- [轉]RAC 安裝配置過程中的問題
- linux下安裝mysql的問題解決LinuxMySql
- CentOS7安裝ecshopV2.7.3過程中mysql不支援問題CentOSMySql
- RAC安裝配置和使用過程的問題解決方法總結一
- RAC安裝配置和使用過程的問題解決方法總結二
- Mysql安裝過程問題總結及處理方法MySql
- elk(單機)安裝過程中遇到的問題及解決方法
- Oracle RAC之--安裝過程中碰到的問題及解決方法Oracle
- 安裝mysql中遇到的問題1MySql
- 在linux中安裝mysql並解決中文亂碼問題LinuxMySql
- 安裝yeoman,grunt過程中的問題
- STATSPACK安裝過程中遇到的問題
- 安裝mysql資料庫及問題解決方法MySql資料庫
- apache、php、mysql安裝過程ApachePHPMySql
- centos 安裝MySQL全過程CentOSMySql
- 開發過程中mysql常見問題MySql
- 接續:RAC安裝配置和使用過程的問題解決方法總結二
- CentOS6.5安裝mysql以及常見問題的解決CentOSMySql
- 安裝DBD:MySql模組遇到的問題及解決辦法MySql
- ambari安裝過程中的問題彙總
- Mysql安裝過程中CMAKE編譯出錯MySql編譯
- MySql安裝過程中初始化失敗MySql
- 安裝mysql遇到的問題MySql
- MySQL儲存過程中的sql_mode問題MySql儲存過程
- linux mysql5.6版本的安裝配置過程LinuxMySql
- 記一次wordpress安裝過程中遇到的問題及解決辦法
- CentOs中mysql的安裝與配置CentOSMySql
- Cacti監控MySQL實現過程中碰到的問題解彙總MySql
- Centos5.5中安裝Mysql5.5過程分享CentOSMySql
- mysql 原始碼安裝過程中錯誤總結MySql原始碼
- MySQL 5.7 Window安裝手冊以及問題方案解決大全MySql
- Windows 安裝 MySQL 5.7.20 教程(及常見問題解決)WindowsMySql
- Linux解決MySQL-python安裝失敗問題LinuxMySqlPython
- mysql 安裝出現的問題MySql
- munium學習過程中問題解決
- 在Ubuntu上原始碼安裝MySQL+安裝問題解決+安全優化Ubuntu原始碼MySql優化