%/
2. Install the MySQL database:
1> upload mysql-5.0.41.tar.gz to the home Directory of Linux through SSH
2> Create MySQL users and groups:Copy codeThe Code is as follows:# Groupadd mysql# Useradd-g mysql
3> decompress the mysql-
.tar.gz // Unzip the mysql binary package
[Root @ localhost local] # ln-s mysql-5.5.37-linux2.6-i686 mysql // Unzip and add the link
[Root @ localhost local] # groupadd mysql // add a mysql User Group
[Root @ localhost local] # useradd-g
-- check whether MySQL is installed before the system.
Mysql-libs-5.1.47-4.el6.i686 display results show that CentOS6.0 system comes with a MySQL, We need to delete this old version,RootThe user executes the following statementSu-password:
Rpm-e -- nodeps mysql-libs-5.1.47-4.el6.i686
Switch to the "root" user first, a
Talking about the problem of mysql password forgetting and logon error, talking about the problem of mysql password forgetting
The mysql logon password is forgotten. In fact, the solution is simple. You only need to add a line of "Skip authorization table" parameter selection in the mysql main configuration file my.
reasons.
1. disable remote connection:
First, disable Port 3306, which is the default listening port of MySQL. MySQL only serves local scripts, so remote connection is not required. Although the built-in security mechanism of MySQL is very strict, listening to a TCP port is still dangerous, because if the MySQL pr
Starting MySQL... The server quit without updating PID file [failed] lib/mysql/localhost. localdomain. pid)., localhost
After restarting the server, the following error is reported:
Starting MySQL... The server quit without updating PID file [failed] lib/mysql/localhost. localdomain. pid ).
After a long struggle, I cou
. configure and start
MySQL configuration files must be manually selected and copied to/etc. these template files are located in the support-files directory of the source file. There are four in total: small, medium, large, and huge.
# Cp support-files/my-medium.cnf/etc/my. cnf
# Chown root: sys/etc/my. cnf
# Chmod 644/etc/my.
Talking about the problem of mysql password forgetting and logon error, talking about the problem of mysql password forgetting
The mysql logon password is forgotten. In fact, the solution is simple. You only need to add a line of "Skip authorization table" parameter selection in the mysql main configuration file my.
, such as how mysql starts InnoDB tablespace files and how to initialize its storage engine.
(1) Startup Error Log
Error logs are enabled by default and cannot be disabled. You can also configure the error log information by modifying the my. cnf file. The information recorded in the error log can be defined by log-error and log-warnings. log-err defines whether to enable the error log function and the loca
specified by MySQL on linuxa );
As MySQL is just installed, create the same database on MySQL of linuxa and linuxb, for example, test (the table has Stu,Class, teacher) to ensure that the database names on the two MySQL databases are consistent with their table names and
The structure is consistent. If there is a diff
This article describes how to install and configure the MasterSlave cluster of MySQL. The latest stable version is GA5619. To support limited HA, we use the MasterSlave simple read/write splitting cluster. Limited HA means that data will not be lost when the Master is unavailable, but in Mast this article describes the installation and configuration of the MySQL Master/Slave cluster. the installed version i
is placed in the cache. If there are many new threads, this variable value can be used to improve performance. By comparing variables in Connections and Threads_created states, you can see the role of this variable. I set it to 80.
Key Parameter 9: wait_timeout
The number of seconds that the server waits for action on a connection before closing it. The default value is 28800. I will change it to 7200.
Note: You can modify the parameters by modifying the/etc/my.
. after confirming that several basic configurations are correct, run
shell> make shell> make install
Note 1:If the installation failure is caused by an error specified by the parameter during step 1./configure, you need to re-execute./configure.
Make sure to execute make cleanAnd then make make install again. If you do not make clean directly, the part of the last compiled files in the source code directory will not be re-compiled, and these last compiled files use the last incorrectly conf
': unsigned value 100 adjusted to 400151106 15:37:14 [Note] mysqld (mysqld 5.5.44-log) starting as process 76330... 151106 15:37:14 [Warning] Can't create test file/usr/local/mysql/data/ubuntu. lower-test151106 15:37:14 [Warning] Can't create test file/usr/local/mysql/data /Ubuntu. lower-test151106 15:37:14 [Warning] One can only use the -- user switch if running as rootmysqld: File '/usr/local/
/ -DMYSQL_SERVER_SUFFIX='-r5436';make -j `cat /proc/cpuinfo | grep processor| wc -l`%installcd $OLDPWD/../make DESTDIR=$RPM_BUILD_ROOT install%cleanrm -rf $RPM_BUILD_ROOT%files%defattr(-, %{MYSQL_USER}, %{MYSQL_GROUP})%attr(755, %{MYSQL_USER}, %{MYSQL_GROUP}) %{prefix}/*%pre%postln -s %{prefix}/lib %{prefix}/lib64%preun%changelogWith this spec file, you can execute the following command to generate your own RPM Package:
rpmbuild -bb ./mysql.spec2. Compile the my.
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.