1044 - Access denied for user 'user'@'localhost' to database 'db'

前端 未结 6 1613
感动是毒
感动是毒 2020-12-15 23:23

I tried a lot to import the sql script to create database and tables through phpmyadmin in the new site I hosted. But i\'m getting the error,

1044 - A

6条回答
  •  遥遥无期
    2020-12-16 00:13

    For me the problem is I'm not having permissions to Create new Databasename or even Modify the name of the Database. You can contact your admin to avail privileges or if you want to quickly import the .sql file... then you can open the .sql file with text editor and find the following line:

    CREATE DATABASE IF NOT EXISTS `enter the existing db name` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
    USE `enter the existing db name`;
    

    After that try to import the .sql file...now you can successfully import all the tables!

提交回复
热议问题