MYSQL database service has stopped.
Solution (for WIN System ):
1. First, find the MYSQL service in the system service and start the MYSQL service.
2. go to the MYSQL installation directory and find the MY. INI file. open MY. INI to find max_connections and change the connection count to 1000. restart IIS and MYSQL services.
Windows
Enter the following command line:
> Cd E:/mysql/bin
> Mysqladmin-u root password your password
> Mysql-u root-p
Enter
files.
2. Install MySQL
The RPM file is a software installation package developed by Red Hat. RPM frees Linux from complicated procedures when installing software packages.
The frequently used parameter of this command during installation is-IVH, where I indicates that the specified RMP package will be installed, and V indicates the detailed information during installation, h indicates that the "#" symbol appears during the installation to display the current installation process. This sy
files.
2. Install MySQL
The RPM file is a software installation package developed by Red Hat. RPM frees Linux from complicated procedures when installing software packages. The frequently used parameter of this command during installation is-IVH, where I indicates that the specified RMP package will be installed, and V indicates the detailed information during installation, h indicates that the "#" symbol appears during the installation to display the current installation process. This symbol w
GRANT, REVOKE, or set password are immediately noticed by the server.
If you manually modify the authorization form (using INSERT, UPDATE, and so on), you should execute a flush privileges statement or run Mysqladmin flush-privileges tell the server to reload the authorization form, or your changes will not take effect. Unless you reboot the server.
5. Establish the initial MySQL permissions
After installing MySQL, you install the initial access p
server
#mysqladmin shutdown
#rpm –E–VV mysql-3.23.25-1
#rpm –E–VV mysql-client-3.23.25-1
6, Installation account management MySQL server: Installation from the RPM. The MySQL user account is automatically created. This is a user that is used to run the MySQL service.
Change mysqladmin Password: To enhance security, you need to change the password for the root user of MySQL, which can be done with the
The following articles mainly describe how to correctly check the number of MySQL connections and parse the actual application code for viewing the number of MySQL connections, the following describes the specific operation plan for the number of MySQL connections. I hope this will help you in your future studies. MySQLadmin-uiseeuon-pmtcera2009processlist-v to see the current proportion of C
The following articles mainly describe how to correctly che
installation package developed by Red Hat. rpm frees Linux from complicated procedures when installing software packages. The frequently used parameter of this command during installation is-ivh, where I indicates that the specified rmp package will be installed, and V indicates the detailed information during installation, h indicates that the "#" symbol appears during the installation to display the current installation process. This symbol will not stop until the installation is complete.
1)
Method 1: the simplest method is the method prompted by the system after mysql is installed. Use mysqladmin. Double quotes behind the shellmysqladmin-urootpasswordnewpwdshellmysqladmin-uroot-hhost_namepasswordnewpwdpassword are not mandatory, but if the password contains null or special
Method 1: the simplest method is the method prompted by the system after mysql is installed. Use mysqladmin. Shell
information during installation, h indicates that the "#" symbol appears during the installation to display the current installation process. This symbol will not stop until the installation is complete.
1) install the server
Run the following command in the directory with two RMP files:
[Root @ test1 local] # rpm-IVH MySQL-server-4.0.16-0.i386.rpm
The following information is displayed.
Warning: MySQL-server-4.0.16-0.i386.rpm: V3 DSA Signature: nokey, key ID 5072e1f5
Preparing... #############
You can use mysqladmin to create a database by backing up the mysql database and copying the database to another server.
After importing the mysql database to the target machine, runMysqladmin flush-privilegesTo reload the authorization table information on the server.
D:/MySql 5.1.73/bin/mysqladmin-u root create test2;
D:/Mysql 5.1.73/bin/mysqladmin-u root dro
modify the authorization table (using INSERT, UPDATE, and so on), you should execute a flush privileges statement or run mysqladmin flush-privileges to tell the server to load the authorization table again, otherwise, your change will not take effect unless you restart the server.
5. create initial MySQL permissions
After installing MySQL, you can run scripts/mysql_install_db to install the initial access permission. Contains the following permission
This article describes how to change a user's password. You can use three methods: GRANT statement, SETPASSWORD statement, directly modify the authorization table, and use the management tool mysqladmin.
This article describes how to change a user's PASSWORD. You can use three methods: GRANT statement, set password statement, directly modify the authorization table, and use the management tool mysqladmin.
indicates the detailed information during installation, h indicates that the "#" symbol appears during the installation to display the current installation process. This symbol will not stop until the installation is complete.
1) install the server
Run the following command in the directory with two rmp files:
[Root @ test1 local] # rpm-ivh MySQL-server-4.0.16-0.i386.rpm
The following information is displayed.
Warning: MySQL-server-4.0.16-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Pre
18.2.1 MySQL server has gone away error
This section also covers errors about lost connection to server during query.
The most common cause of gone away errors for MySQL server has is that the server timed out and closed the connection. By default, if nothing happens, the server closes the connection after 8 hours. You can change the time limit by setting the Wait_timeout variable when starting mysqld.
You can check that MySQL is not dead by executing mys
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.