Originally Posted by
aryangor
...
Code:
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
This is MOST insecure and NOT The Way.
The DB_NAME value is 'wordpress' - this is the default one of the dummy
Originally Posted by
aryangor
...When I change DB_NAME to 'import'...
why?
typically, I'd create a wpinstall_user or some such with
Code:
mysql > create database mywp;
mysql > grant all privileges on mywp.* to wpinstaller@`localhost` identified by 'password';
flush privileges;
exit;
then test it with
Code:
mysql -uwpinstaller -p -e "show databases;"
you should 'see' mywp
use these for wp-config.php
Code:
define('DB_NAME', 'mywp');
/** MySQL database username */
define('DB_USER', 'wpinstaller');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
Bookmarks