Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

前端 未结 18 2266
轮回少年
轮回少年 2020-12-04 15:29

I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried t

18条回答
  •  伪装坚强ぢ
    2020-12-04 15:40

    In Windows run the following commands in the command prompt as adminstrator

    Step 1:
    mysql_install_db.exe
    
    Step 2:
    mysqld --initialize
    
    Step 3:
    mysqld --console
    
    Step 4:
    In windows
    
    Step 4:
    mysqladmin -u root password "XXXXXXX"
    
    Step 5:
    mysql -u root -p
    

提交回复
热议问题