手册:MySQL /开始
mysql -u wikiuser -p my_wiki
将wikiuser和my_wiki更改为您的Wiki的用户名和数据库名称($wgDBuser
和$wgDBname
)。
出现提示时,输入密码。
例
$ mysql -u root -p my_wiki
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 150
Server version: 5.6.24-0ubuntu2 (Ubuntu)
...
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>.