MySQL: Difference between revisions
Jump to navigation
Jump to search
(Replaced content with "= Installation issues = == Fail to start == On Ubuntu 12.04, we can use <pre> sudo dpkg-reconfigure mysql-server-5.5 </pre> == InnoDB vs MyISAM == The default is InnoDB....") Tag: Replaced |
|||
Line 1: | Line 1: | ||
= Installation issues = | |||
== Fail to start == | |||
On Ubuntu 12.04, we can use | On Ubuntu 12.04, we can use | ||
<pre> | <pre> | ||
Line 6: | Line 6: | ||
</pre> | </pre> | ||
== InnoDB vs MyISAM == | |||
The default is InnoDB. | The default is InnoDB. | ||
= Under Shell = | |||
== Manual/Documentation == | |||
https://dev.mysql.com/doc/refman | https://dev.mysql.com/doc/refman | ||
== Installation and setup root password == | |||
[https://itsfoss.com/install-mysql-ubuntu/ How to Install MySQL in Ubuntu Linux] (18.04) | [https://itsfoss.com/install-mysql-ubuntu/ How to Install MySQL in Ubuntu Linux] (18.04) | ||
Line 35: | Line 35: | ||
+--------------------+ | +--------------------+ | ||
| information_schema | | | information_schema | | ||
Revision as of 20:15, 23 June 2019
Installation issues
Fail to start
On Ubuntu 12.04, we can use
sudo dpkg-reconfigure mysql-server-5.5
InnoDB vs MyISAM
The default is InnoDB.
Under Shell
Manual/Documentation
https://dev.mysql.com/doc/refman
Installation and setup root password
How to Install MySQL in Ubuntu Linux (18.04)
Debian 9 (Stretch) package now ships with the UNIX_SOCKET authentication plugin enabled and you are no longer asked to set a root password when installing the package. Even when setting a root password via the mysql_secure_installation script you are still denied. So we need to run 'update'; see the command below.
See a solution at Debian 9 “Stretch” and MySQL/MariaDB root password.
$ sudo apt-get install mysql-server $ sudo mysql_secure_installation $ sudo mysql -u root mysql -e "update user set plugin= where user='root'; flush privileges;" $ mysql -u root -p ... Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 12 Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0 ... MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema |