I have just been in touch with Linux for less than a week. I just sorted out several videos from the Internet and watched and learned. If you have time to do something by yourself today, you can use a connection provider ------- to deploy the mysql database. Hey.
I searched some information on the Internet and found two mysql rmp packages. In fact, this is equivalent to the exe Installation File in windows.
Let's talk about the installation procedure.
Download these two packages
MySQL-server-5.1.7-0.i386.rpm
MySQL-client-community-5.0.45-0.rhe13.i386.rpm
1. Install the mysql server
Rpm-ivh MySQL-server-5.1.7-0.i386.rpm
--------------------------------------------------------------
2. Install the mysql client
Rpm-ivh MySQL-client-community-5.0.45-0.rhe13.i386.rpm
--------------------------------------------------------------
3. Run mysql_install_db to initialize the database.
#/Usr/bin/mysql_install_db
--------------------------------------------------------------
4. Check whether the test is successful.
Run netstat to check whether the Mysql port is opened. If yes, the service is started and the installation is successful. The default Mysql port is
3306.
... # Netstat-nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
Tcp 0 0 0.0.0.0: 3306 0.0.0.0: * LISTEN
The above shows that the MySQL service has been started.
--------------------------------------------------------------
5. log on to the database
Mysql [-u username] [-h host] [-p [password] [dbname]