Table of Contents |
---|
...
decide if MySQL server should start automatically or manually
Troubleshoot failed server startup
https://dev.mysql.com/doc/refman/8.0/en/starting-server-troubleshooting.html
Log files are located in the data directory (typically C:\Program Files\MySQL\MySQL Server 8.0\data
on Windows, /usr/local/mysql/data
for a Unix/Linux binary distribution, and /usr/local/var
for a Unix/Linux source distribution). Look in the data directory for files with names of the form
and host_name
.err
, where host_name
.loghost_name
is the name of your server host. Then examine the last few lines of these files. Use tail
to display them:
shell> tail host_name.err shell> tail host_name.log
jim-macbook:/ jimmason$ cd /usr/local/mysql
jim-macbook:mysql jimmason$ ls -l
total 552
-rw-r--r-- 1 root wheel 276551 Jul 1 03:53 LICENSE
-rw-r--r-- 1 root wheel 666 Jul 1 03:53 README
drwxr-xr-x 35 root wheel 1120 Aug 29 22:45 bin
drwxr-x--- 27 _mysql _mysql 864 Aug 29 23:42 data
drwxr-xr-x 5 root wheel 160 Jul 1 05:42 docs
drwxr-xr-x 16 root wheel 512 Jul 1 05:42 include
drwxr-x--- 2 _mysql _mysql 64 Aug 29 22:53 keyring
drwxr-xr-x 17 root wheel 544 Aug 29 22:45 lib
drwxr-xr-x 4 root wheel 128 Jul 1 05:42 man
drwxr-xr-x 34 root wheel 1088 Jul 1 05:42 share
drwxr-xr-x 5 root wheel 160 Jul 1 05:42 support-files
tailing log shows security error running mysqld as root user
2021-08-30T03:48:11.926750Z 0 [ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
https://stackoverflow.com/questions/41995912/macos-cant-start-mysql-server
A sample my.cnf config file
my.cnf:
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/mysql-5.7.17-macos10.12-x86_64/data
tmpdir = /tmp
MySQL admin
MySQLD default login
...
https://www.a2hosting.com/kb/developer-corner/mysql/reset-mysql-root-password
Access server environment to reset
You must have root access on the server to reset MySQL's root password.
if remote, login with ssh
You must run the commands in the following steps as the root user. Therefore, you can either log in directly as the root user (which is not recommended for security reasons), or use the su or sudo commands to run the commands as the root user.
Stop the MySQL service or daemon first
service mysql stop
or
mysqld stop
...
MariaDB vs MySQL Key Differences Comparing MySQL 80 with MariaDB 105.pdf gdrv
The goal of this article is to evaluate and highlight the main similarities and differences between the MySQL Server Database and the MariaDB Server Database. We’ll look into performance aspects, security, main features, and list all aspects which need to be considered before choosing the right database for your requirements.
For MySQL, we can see names such as Facebook, Github, YouTube, Twitter, PayPal, Nokia, Spotify, Netflix and more.
For MariaDB, we can see names such as Redhat, DBS, Suse, Ubuntu, 1&1, Ingenico, Gaming Innovation Group, BlaBla Cars and more.
Oracle DB compare to MySQL DB
...