install mysql server pada centos
TRANSCRIPT
-
7/31/2019 Install MySQL Server Pada CentOS
1/4
Install MySQL Server Pada CentOS
http://www.linggih.com| Install MySQL Server Pada CentOS 1
Install MySQL Server Pada CentOS
MySQL Database Server merupakan database web hosting yang digunakan untuk menyimpan berbagai macam data
informasi seperti blog post, detail informasi user, comment dlsb. MySQLmerupakan database server yang paling
populer dan banyak digunakan oleh webmaster saat ini, dikarenakan selain gratis namun juga sangat fleksibel dan
mampu handle berbagai macam tipe dinamic web (PHP, ASP, Perl dlsb).
Install MySQL Database Pada OS CentOS
Berikut cara simpel install MySQL Database Server pada CentOS:. Ketikkan command
yum install mysql-server mysql php-mysql
[root@server5 ~]# yum install mysql-server mysql php-mysqlLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: centos.biz.net.id* extras: centos.biz.net.id* updates: mirror.averse.net
Setting up InstallProcessPackagemysql-5.1.61-1.el6_2.1.x86_64 already installed and latest version Resolving Dependencies--> Running transaction check---> Packagemysql-server.x86_64 0:5.1.61-1.el6_2.1 will be installed--> Processing Dependency: perl-DBI for package: mysql-server-5.1.61-1.el6_2.1.x86_64--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.61-1.el6_2.1.x86_64 --> Processing Dependency: perl(DBI) for package: mysql-server-5.1.61-1.el6_2.1.x86_64---> Packagephp-mysql.x86_64 0:5.3.3-3.el6_2.6 will be installed--> Processing Dependency: php-common = 5.3.3-3.el6_2.6 for package: php-mysql-5.3.3-3.el6_2.6.x86_64 --> Processing Dependency: php-pdo for package: php-mysql-5.3.3-3.el6_2.6.x86_64--> Running transaction check---> Packageperl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed---> Packageperl-DBI.x86_64 0:1.609-4.el6 will be installed---> Packagephp-common.x86_64 0:5.3.3-3.el6_2.6 will be installed---> Packagephp-pdo.x86_64 0:5.3.3-3.el6_2.6 will be installed--> Finished Dependency ResolutionDependenciesResolved================================================================================ Package Arch Version Repository Size
================================================================================ Installing:mysql-server x86_64 5.1.61-1.el6_2.1 updates 8.1 Mphp-mysql x86_64 5.3.3-3.el6_2.6 updates 79 k
Installing for dependencies:perl-DBD-MySQL x86_64 4.013-3.el6 base 134 kperl-DBI x86_64 1.609-4.el6 base 705 kphp-common x86_64 5.3.3-3.el6_2.6 updates 522 k
http://linggih.com/ -
7/31/2019 Install MySQL Server Pada CentOS
2/4
Install MySQL Server Pada CentOS
http://www.linggih.com| Install MySQL Server Pada CentOS 2
php-pdo x86_64 5.3.3-3.el6_2.6 updates 73 kTransaction Summary================================================================================ Install 6 Package(s)Total download size:9.6 MInstalledsize: 29 MIs this ok[y/N]: yDownloading Packages:(1/6): mysql-server-5.1.61-1.el6_2.1.x86_64.rpm | 8.1 MB 00:35http://centos.biz.net.id/6.2/os/x86_64/Packages/perl-DBD-MySQL-4.013-3.el6.x86_64.rpm:[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror.(2/6): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 134 kB 00:00(3/6): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:03(4/6): php-common-5.3.3-3.el6_2.6.x86_64.rpm | 522 kB 00:02(5/6): php-mysql-5.3.3-3.el6_2.6.x86_64.rpm | 79 kB 00:00(6/6): php-pdo-5.3.3-3.el6_2.6.x86_64.rpm | 73 kB 00:00-------------------------------------------------------------------------------- Total 225 kB/s| 9.6 MB 00:43Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction
Installing : php-common-5.3.3-3.el6_2.6.x86_64 1/6Installing : perl-DBI-1.609-4.el6.x86_64 2/6Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 3/6Installing : php-pdo-5.3.3-3.el6_2.6.x86_64 4/6Installing : php-mysql-5.3.3-3.el6_2.6.x86_64 5/6Installing : mysql-server-5.1.61-1.el6_2.1.x86_64 6/6
Installed:mysql-server.x86_64 0:5.1.61-1.el6_2.1 php-mysql.x86_64 0:5.3.3-3.el6_2.6
Dependency Installed:perl-DBD-MySQL.x86_64 0:4.013-3.el6 perl-DBI.x86_64 0:1.609-4.el6php-common.x86_64 0:5.3.3-3.el6_2.6 php-pdo.x86_64 0:5.3.3-3.el6_2.6
Complete![root@server5 ~]#Untuk load MySQL service ketika mesin server boot (start up), ketikkan command berikut;
chkconfig mysqld on
[root@server5 ~]# chkconfig mysqld on[root@server5 ~]#Jalankan MySQL Dengan Command;
service mysqld start
[root@server5 ~]# service mysqld start
http://linggih.com/ -
7/31/2019 Install MySQL Server Pada CentOS
3/4
Install MySQL Server Pada CentOS
http://www.linggih.com| Install MySQL Server Pada CentOS 3
Initializing MySQL database: WARNING: The host 'server5'could not be looked up withresolveip.This probably means that your libc libraries are not 100 % compatible with this binary MySQL version. The MySQL daemon, mysqld, should worknormally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames when specifying MySQL privileges !Installing MySQL system tables...OKFilling help tables...OKTo start mysqldat boot timeyou have to copysupport-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To doso, start the server, thenissue the following commands:/usr/bin/mysqladmin -u root password 'new-password'/usr/bin/mysqladmin -u root -h server5 password 'new-password'Alternatively you can run:/usr/bin/mysql_secure_installation whichwill also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers.See the manual for moreinstructions.You can start the MySQL daemon with:cd/usr; /usr/bin/mysqld_safe&You can testthe MySQL daemon with mysql-test-run.plcd/usr/mysql-test; perl mysql-test-run.plPlease report any problems with the /usr/bin/mysqlbug script!
[ OK ]Starting mysqld: [ OK ][root@server5 ~]#Set password MySQL root; ketikkan command; mysql -u root. Jika selesai, tekan tombol"Ctrl + C" untuk keluar.
[root@server5 ~]# mysql -u rootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection idis 2Server version: 5.1.61 Source distributionCopyright (c) 2000, 2011, Oracle and/orits affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/oritsaffiliates. Other names may be trademarks of their respectiveowners.
http://linggih.com/ -
7/31/2019 Install MySQL Server Pada CentOS
4/4
Install MySQL Server Pada CentOS
http://www.linggih.com| Install MySQL Server Pada CentOS 4
Type 'help;'or '\h'for help. Type '\c'to clearthe current input statement.mysql> SET PASSWORD FOR 'root'@'localhost'= PASSWORD('testingpassword');Query OK, 0 rows affected (0.00 sec)mysql> SET PASSWORD FOR 'root'@'server5'= PASSWORD('testingpassword');Query OK, 0 rows affected (0.00 sec)mysql> SET PASSWORD FOR 'root'@'127.0.0.1'= PASSWORD('testingpassword');Query OK, 0 rows affected (0.00 sec)mysql>mysql> Ctrl-C -- exit!Aborted[root@server5 ~]#Untuk cek versi MySQL, ketikkan command mysqlversion
[root@server5 ~]# mysql --versionmysql Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1 [root@server5 ~]#Selesai. Semoga bermanfaat.
Article Source:
http://linggih.com/unix/unix-os/centos/install-mysql-server-pada-centos/
http://linggih.com/unix/unix-os/centos/install-mysql-server-pada-centos/http://linggih.com/unix/unix-os/centos/install-mysql-server-pada-centos/http://linggih.com/unix/unix-os/centos/install-mysql-server-pada-centos/http://linggih.com/