The installation created user "mysql" in the /etc/passwd file[root@isvx3 ~]# yum install mysql-server mysql Loaded plugins: rhnplugin, security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package mysql.i386 0:5.0.77-4.el5_5.4 set to be updated --> Processing Dependency: perl(DBI) for package: mysql ---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated ---> Package mysql-server.x86_64 0:5.0.77-4.el5_5.4 set to be updated --> Processing Dependency: perl-DBD-MySQL for package: mysql-server --> Running transaction check ---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated ---> Package perl-DBI.x86_64 0:1.52-2.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mysql i386 5.0.77-4.el5_5.4 rhel-x86_64-server-5 4.8 M mysql x86_64 5.0.77-4.el5_5.4 rhel-x86_64-server-5 4.8 M mysql-server x86_64 5.0.77-4.el5_5.4 rhel-x86_64-server-5 9.8 M Installing for dependencies: perl-DBD-MySQL x86_64 3.0007-2.el5 rhel-x86_64-server-5 147 k perl-DBI x86_64 1.52-2.el5 rhel-x86_64-server-5 605 k Transaction Summary ================================================================================ Install 5 Package(s) Upgrade 0 Package(s) Total download size: 20 M Is this ok [y/N]: y Downloading Packages: (1/5): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm | 147 kB 00:00 (2/5): perl-DBI-1.52-2.el5.x86_64.rpm | 605 kB 00:00 (3/5): mysql-5.0.77-4.el5_5.4.i386.rpm | 4.8 MB 00:02 (4/5): mysql-5.0.77-4.el5_5.4.x86_64.rpm | 4.8 MB 00:15 (5/5): mysql-server-5.0.77-4.el5_5.4.x86_64.rpm | 9.8 MB 00:10 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 657 kB/s | 20 MB 00:31 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : perl-DBI 1/5 Installing : mysql 2/5 Installing : perl-DBD-MySQL 3/5 Installing : mysql 4/5 Installing : mysql-server 5/5 Installed: mysql.i386 0:5.0.77-4.el5_5.4 mysql.x86_64 0:5.0.77-4.el5_5.4 mysql-server.x86_64 0:5.0.77-4.el5_5.4 Dependency Installed: perl-DBD-MySQL.x86_64 0:3.0007-2.el5 perl-DBI.x86_64 0:1.52-2.el5 Complete! [root@isvx3 ~]#
Now that we have completed the installation bits, let us try and start it.-bash-3.2$ cat /etc/passwd | grep mysql mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash [root@isvx3 ~]# su - mysql -bash-3.2$ pwd /var/lib/mysql -bash-3.2$ id uid=27(mysql) gid=27(mysql) groups=27(mysql)
[root@isvx3 etc]# ps -ef | grep mysql root 2560 21023 0 17:13 pts/1 00:00:00 grep mysql [root@isvx3 etc]# chkconfig mysqld on [root@isvx3 etc]# /etc/init.d/mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h isvx3.storage.tucson.ibm.com password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com [ OK ] Starting MySQL: [ OK ]
Now let us check the MySQL processes on the system
[root@isvx3 etc]# ps -ef | grep mysql root 2929 1 0 17:14 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql mysql 2979 2929 0 17:14 pts/1 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock root 3188 21023 0 17:14 pts/1 00:00:00 grep sql [root@isvx3 etc]#
No comments:
Post a Comment