Difference between revisions of "OS-Linux-Service-Mysql"
Jump to navigation
Jump to search
(Copy from PmWiki) |
(Convert markup from PmWiki to MediaWiki) |
||
Line 1: | Line 1: | ||
− | + | ; See Also : [[OS-Linux]]<br /> | |
− | + | = General Information = | |
− | + | <blockquote> | |
− | + | == Server Details == | |
− | : | + | ; Port : 3306 |
− | + | == Client Details == | |
− | + | ; name : mysql | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | </blockquote> | |
− | |||
− | |||
− | |||
− | + | = Troubleshooting Hints = | |
− | (: | + | <blockquote> |
− | + | ||
− | + | # Upon trying to secure the root user with `mysqladmin -u root -h $(hostname) password 'new-password'<br />(as advised when first starting the server): | |
− | + | #* mysqladmin: connect to server at 'duo_10s.kbulgrien.att.net' failed | |
− | + | #: error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 111' | |
− | + | #:* Is bind-address set in /etc/my.cnf? | |
− | + | #:* Is bind-address in /etc/my.cnf the same as <code>-h $(hostname)</code>? | |
− | + | # Upon attempting a start of the client with `mysql`: | |
− | + | #: | |
− | + | #* ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) | |
− | + | #** Start the client with `mysql -p`and enter the appropriate password when prompted. | |
− | + | #* ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) | |
− | + | #** Start the server with `service mysqld start`. | |
− | + | ||
− | + | </blockquote> | |
− | + | ||
− | + | = Files & Folders = | |
− | + | ||
− | + | <blockquote> | |
− | + | ||
− | + | {| bgcolor="#C0C0C0" cellpadding="0" cellspacing="1" | |
− | + | ! bgcolor="#808080" | Root | |
− | + | ! bgcolor="#808080" | Directory Tree | |
− | + | ! bgcolor="#808080" | Description | |
− | + | |- | |
− | + | | rowspan="3" style="vertical-align: top;" | /etc/ | |
− | + | | | |
− | + | | Configuration file area | |
− | + | |- | |
− | + | | bgcolor="#CFCFCF" | my.cnf | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | |- | |
− | + | | mysqlmanager.passwd | |
− | + | | | |
− | + | |- | |
− | + | | bgcolor="#CFCFCF" rowspan="2" style="vertical-align: top;" | /etc/rc.d/init.d/ | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | |- | |
− | + | | mysqld | |
− | + | | | |
− | + | |- | |
− | + | | bgcolor="#CFCFCF" rowspan="2" style="vertical-align: top;" | /etc/sysconfig/ | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | |- mysqld | |
− | + | | | |
− | + | |- | |
− | + | | bgcolor="#CFCFCF" rowspan="2" style="vertical-align: top;" | /usr/lib*/mysql/mysql/plugin/ | |
− | + | | bgcolor="#CFCFCF" | | |
− | + | | bgcolor="#CFCFCF" | | |
+ | |- | ||
+ | | *.so | ||
+ | | | ||
+ | |- | ||
+ | | bgcolor="#CFCFCF" rowspan="2" style="vertical-align: top;" | /usr/sbin/ | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | |- | ||
+ | | mysqld | ||
+ | | | ||
+ | |- | ||
+ | | bgcolor="#CFCFCF" rowspan="3" style="vertical-align: top;" | /var/lib/mysql/ | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | |- | ||
+ | | mysql.sock | ||
+ | | | ||
+ | |- | ||
+ | | bgcolor="#CFCFCF" | mysqlmanager.sock | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | |- | ||
+ | | rowspan="2" style="vertical-align: top;" | /var/log/mysql/ | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | bgcolor="#CFCFCF" | mysqld.log | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | |- | ||
+ | | rowspan="3" style="vertical-align: top;" | /var/run/mysqld | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | bgcolor="#CFCFCF" | mysqld.pid | ||
+ | | bgcolor="#CFCFCF" | | ||
+ | |- | ||
+ | | mysqlmanager.pid | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | </blockquote> | ||
+ | |||
+ | [[Category:OS]] | ||
+ | [[Category:OS-Linux]] | ||
+ | [[Category:OS-Linux-Service]] |
Revision as of 04:03, 6 February 2018
- See Also
- OS-Linux
Contents
General Information
Server Details
- Port
- 3306
Client Details
- name
- mysql
Troubleshooting Hints
- Upon trying to secure the root user with `mysqladmin -u root -h $(hostname) password 'new-password'
(as advised when first starting the server):
- mysqladmin: connect to server at 'duo_10s.kbulgrien.att.net' failed
- error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 111'
- Is bind-address set in /etc/my.cnf?
- Is bind-address in /etc/my.cnf the same as
-h $(hostname)
?- Upon attempting a start of the client with `mysql`:
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Start the client with `mysql -p`and enter the appropriate password when prompted.
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- Start the server with `service mysqld start`.
Files & Folders
Root Directory Tree Description /etc/ Configuration file area my.cnf mysqlmanager.passwd /etc/rc.d/init.d/ mysqld /etc/sysconfig/ /usr/lib*/mysql/mysql/plugin/ *.so /usr/sbin/ mysqld /var/lib/mysql/ mysql.sock mysqlmanager.sock /var/log/mysql/ mysqld.log /var/run/mysqld mysqld.pid mysqlmanager.pid