1
- * MYSQL WON'T START OR STOP?
2
- ============================
1
+ * MARIADB WON'T START OR STOP?
2
+ ==============================
3
3
4
4
The most common reasons the server does not start are:
5
5
- AppArmor is enforced and something is wrong with the confinement profile.
@@ -10,12 +10,12 @@ First check the contents of syslog (or systemd journal) and then check the
10
10
logs at /var/log/mysql/ for any hints of what might be wrong.
11
11
12
12
Examples:
13
- grep mysql /var/log/syslog
13
+ grep mariadbd /var/log/syslog
14
14
journalctl -u mariadb
15
15
16
16
17
- * NEW SERVICE NAME, PROCESS AND BINARY NAMES IN MARIADB 10.5
18
- ============================================================
17
+ * NEW SERVICE NAME, PROCESS AND BINARY NAMES SINCE MARIADB 10.5
18
+ ===============================================================
19
19
20
20
Starting form MariaDB 10.5, the default SysV init service name is 'mariadb',
21
21
and can be accessed at path /etc/init.d/mariadb. The alias 'mysql' is only
@@ -38,7 +38,7 @@ https://mariadb.com/kb/en/mariadb/systemd/
38
38
39
39
40
40
* MIXING PACKAGES FROM MARIADB.ORG AND OFFICIAL DEBIAN REPOSITORIES
41
- ==================================================================
41
+ ===================================================================
42
42
43
43
Please note that the MariaDB packaging in official Debian repositories are of
44
44
a completely new generation compared to the legacy packaging used in MariaDB.org
@@ -57,10 +57,10 @@ revision string.
57
57
58
58
On new installs no root password is set and no debian-sys-maint user is
59
59
created anymore. Instead the MariaDB root account is set to be authenticated
60
- using the Unix socket, e.g. any mysqld invocation by root or via sudo will
61
- let the user see the mysqld prompt.
60
+ using the Unix socket, e.g. any mariadb invocation by root or via sudo will
61
+ let the user see the MariaDB prompt.
62
62
63
- You may never ever delete the mysql user "root". Although it has no password
63
+ You may never ever delete the MariaDB user "root". Although it has no password
64
64
is set, the unix_auth plugin ensure that it can only be run locally as the root
65
65
user.
66
66
@@ -84,14 +84,14 @@ MariaDB in Debian is secure by default, because:
84
84
- There is no root account with password anymore. The system admin needs to
85
85
create one themselves if they need it. With no password, all issues related
86
86
to password management and password leaking are gone. Sysadmins can access
87
- the database without a password simply by running 'sudo mysql ' thanks to
87
+ the database without a password simply by running 'sudo mariadb ' thanks to
88
88
socket based authentication, which detects the system root user and allows
89
- them to use the mysqld console as the mysql root user. For details see
89
+ them to use the mariadb console as the MariaDB root user. For details see
90
90
https://www.slideshare.net/ottokekalainen/less-passwords-more-security-unix-socket-authentication-and-other-mariadb-hardening-tips
91
91
- There is no test database nor test accounts in the out-of-the-box Debian
92
92
installation.
93
93
94
- Therefore there is also no need to run the 'mysql_secure_installation '. In fact
94
+ Therefore there is also no need to run the 'mariadb-secure-installation '. In fact
95
95
that script will try to do things that are already prevented, and might fail.
96
96
97
97
@@ -109,11 +109,11 @@ scripts do that automatically.
109
109
* WHAT TO DO AFTER INSTALLATION
110
110
===============================
111
111
112
- The MySQL manual describes certain steps to do at this stage in a separate
112
+ The MariaDB manual describes certain steps to do at this stage in a separate
113
113
chapter. They are not necessary as the Debian packages does them
114
114
automatically.
115
115
116
- There should not be any need to run 'mysql_install_db ' manually, as the install
116
+ There should not be any need to run 'mariadb-install-db ' manually, as the install
117
117
scripts do that automatically.
118
118
119
119
The only thing that is left over for the admin is
@@ -125,7 +125,7 @@ The only thing that is left over for the admin is
125
125
============
126
126
127
127
For security reasons, the Debian package has enabled networking only on the
128
- loop-back device using "bind-address" in /etc/mysql/my .cnf. Check with
128
+ loop-back device using "bind-address" in /etc/mysql/mariadb .cnf. Check with
129
129
"netstat -tlnp" where it is listening. If your connection is aborted
130
130
immediately check your firewall rules or network routes.
131
131
@@ -145,16 +145,16 @@ If your local Unix account is the one you want to have local super user
145
145
access on your database with you can create the following account that will
146
146
only work for the local Unix user connecting to the database locally.
147
147
148
- sudo /usr/bin/mysql -e "GRANT ALL ON *.* TO '$USER'@'localhost' IDENTIFIED VIA unix_socket WITH GRANT OPTION"
148
+ sudo /usr/bin/mariadb -e "GRANT ALL ON *.* TO '$USER'@'localhost' IDENTIFIED VIA unix_socket WITH GRANT OPTION"
149
149
150
150
To create a local machine account username=USERNAME with a password:
151
151
152
- sudo /usr/bin/mysql -e "GRANT ALL ON *.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION"
152
+ sudo /usr/bin/mariadb -e "GRANT ALL ON *.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION"
153
153
154
154
To create a USERNAME user with password 'password' admin user that can access
155
155
the DB server over the network:
156
156
157
- sudo /usr/bin/mysql -e "GRANT ALL ON *.* TO 'USERNAME'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION"
157
+ sudo /usr/bin/mariadb -e "GRANT ALL ON *.* TO 'USERNAME'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION"
158
158
159
159
Scripts should run as a user who have the required grants and be identified via unix_socket.
160
160
@@ -175,13 +175,12 @@ https://mariadb.com/kb/en/configuring-mariadb-with-mycnf/.
175
175
* FURTHER NOTES ON REPLICATION
176
176
==============================
177
177
178
- If the MySQL server is acting as a replication slave, you should not
179
- set --tmpdir to point to a directory on a memory-based file system or to
180
- a directory that is cleared when the server host restarts. A replication
181
- slave needs some of its temporary files to survive a machine restart so
182
- that it can replicate temporary tables or LOAD DATA INFILE operations. If
183
- files in the temporary file directory are lost when the server restarts,
184
- replication fails.
178
+ If the MariaDB server is acting as a replica, you should not set --tmpdir to
179
+ point to a directory on a memory-based file system or to a directory that is
180
+ cleared when the server host restarts. A replica needs some of its temporary
181
+ files to survive a machine restart so that it can replicate temporary tables
182
+ or LOAD DATA INFILE operations. If files in the temporary file directory are
183
+ lost when the server restarts, replication fails.
185
184
186
185
187
186
* DOWNGRADING
@@ -193,7 +192,7 @@ You might get lucky downgrading a few minor versions without issued. Take a
193
192
backup first. If you break it you get to keep both pieces. Do a restore from
194
193
backup or upgrade to the previous version.
195
194
196
- If doing a major version downgrade, take a mysqldump /maria-backup consistent
195
+ If doing a major version downgrade, take a mariadb-dump /maria-backup consistent
197
196
backup using the current version and reload after downgrading and purging
198
197
existing databases.
199
198
0 commit comments