Test connectivity for the web service: Difference between revisions
Jump to navigation
Jump to search
Test connectivity for the web service (edit)
Revision as of 14:25, 27 December 2023
, 27 December 2023→Check if MySQL has started successfully?
Tags: Mobile edit Mobile web edit |
|||
| Line 51: | Line 51: | ||
=== Check if MySQL has started successfully? === | === Check if MySQL has started successfully? === | ||
==== Using lsof command ==== | |||
* {{kbd | key = lsof -i:3306}} on {{Mac}} or {{Linux}} | * {{kbd | key = lsof -i:3306}} on {{Mac}} or {{Linux}} | ||
| Line 65: | Line 66: | ||
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | ||
mysqld 93034 account 29u IPv4 0xxxx 0t0 TCP localhost:mysql (LISTEN) | mysqld 93034 account 29u IPv4 0xxxx 0t0 TCP localhost:mysql (LISTEN) | ||
</pre> | |||
==== Using ps command ==== | |||
* {{kbd | key = <nowiki>ps aux | grep mysql</nowiki>}} on {{Mac}} | |||
Example output if MySQL has started successfully: | |||
<pre> | |||
_mysql 11083 0.3 0.2 409657280 31424 ?? Ss 2:12下午 0:01.07 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so | |||
ACCOUNT 12349 0.0 0.0 408645328 1648 s011 S+ 2:14下午 0:00.00 grep mysql | |||
</pre> | |||
Example output if MySQL has NOT started successfully: | |||
<pre> | |||
ACCOUNT 12349 0.0 0.0 408645328 1648 s011 S+ 2:14下午 0:00.00 grep mysql | |||
</pre> | </pre> | ||