最初,咱们需要通过以下敕令来检查MySQL就业器是否运转:
ps-ef|grepmysqld
如若MySql照旧运转,以上敕令将输出mysql进度列表,如若mysql未运转,你不错使用以下敕令来运转mysql就业器:
mysql-uroot-p
插足或退出MySQL就业器,你不错本质以下敕令:
root@localhost>showdatabase;
ERROR1064(42000):YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionfortherightsyntaxtousenear'database'atline1
root@localhost>showdatabases;
Database
information_schema
mysql
performance_schema
sys
4rowsinset(0.00sec)
root@localhost>usemysql;
Readingtableinformationforcompletionoftableandcolumnnames
Youcanturnoffthisfeaturetogetaquickerstartupwith-A
Databasechanged
root@localhost>^C
root@localhost>exit