Enter current password for root (enter for none):(输入原始root密码,若无则按enter)
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] (按Y设置root密码)
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..... Success!
Remove anonymous users? [Y/n] (按Y移除匿名用户)
... Success!
Disallow root login remotely? [Y/n] (按Y禁止远程root登陆,一般root都设定为只允许本地登陆)
... skipping.
Remove test database and access to it? [Y/n] (按Y删除测试数据库)
Reload privilege tables now? [Y/n] (按Y重新载入)
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
// * MySQL settings - You can get this info from your web host * //
/* The name of the database for WordPress /
define(‘DB_NAME’, ‘wordpressdb’);
/* mysql database username /
define(‘DB_USER’, ‘wordpressuser’);
/* MySQL database password /
define(‘DB_PASSWORD’, ‘123456’);