湖濱散記部落格的樹心幽徑[login][主頁]
397:20180518在ubuntu裝mysql-server

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


select id,article_id,topic,text from lt_articles_text where article_id =397; ok. update lt_articles set num_reads=num_reads +1 where id=397; ok.