MAC启动客户端
$ cd /usr/local/mysql/bin/
$ ./mysql
ERROR 1045 (28000): Access denied for user 'hyx'@'localhost' (using password: NO)
$ mysql -u root -p mysql
Enter password: 12345678
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 14
Server version: 8.0.12 MySQL Community Server - GPL
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
MAC启动服务端
cd /usr/local/mysql/bin/
./mysqld
或者:
sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
cd /usr/local/mysql/bin/
./mysqld_safe --skip-grant-tables &