樹心幽徑

« 20180517安裝ubuntu mysql c connector並設計一個顯示mysql版本的程式 | Main | 20180518在ubuntu裝PHP »

20180518在ubuntu裝mysql-server
2018/05/18,12:32

treehrt@hrt:~/mysqlc$ sudo apt install mysql-server

:
:
設定 mysql-client-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
設定 mysql-client-5.7 (5.7.22-0ubuntu0.16.04.1) ...
設定 mysql-server-core-5.7 (5.7.22-0ubuntu0.16.04.1) ...
設定 libevent-core-2.0-5:i386 (2.0.21-stable-2ubuntu0.16.04.1) ...
設定 mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
設定 libhtml-template-perl (2.95-2) ...
設定 mysql-server (5.7.22-0ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
treehrt@hrt:~/mysqlc$ whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /etc/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
treehrt@hrt:~/mysqlc$ mysql -p -uroot
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.22-0ubuntu0.16.04.1 (Ubuntu)

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> exit
Bye

迴響

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType