Professional Documents
Culture Documents
Transaction Summary ================================================================================ Install 6 Package(s) Total download size: 9.6 M Installed size: 29 M Is this ok [y/N]: y Downloading Packages: (1/6): mysql-server-5.1.61-1.el6_2.1.x86_64.rpm | 8.1 MB 00:35 http://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:43 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : php-common-5.3.3-3.el6_2.6.x86_64 1/6 Installing : perl-DBI-1.609-4.el6.x86_64 2/6 Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 3/6 Installing : php-pdo-5.3.3-3.el6_2.6.x86_64 4/6 Installing : php-mysql-5.3.3-3.el6_2.6.x86_64 5/6 Installing : 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 Dependency Installed: perl-DBD-MySQL.x86_64 0:4.013-3.el6 php-common.x86_64 0:5.3.3-3.el6_2.6 Complete! [root@server5 ~]#
php-mysql.x86_64 0:5.3.3-3.el6_2.6
Untuk load MySQL service ketika mesin server boot (start up), ketikkan command berikut; chkconfig mysqld on
[root@server5 ~]# chkconfig mysqld on [root@server5 ~]#
Set password MySQL root; ketikkan command; mysql -u root. Jika selesai, tekan tombol "Ctrl + C" untuk keluar.
[root@server5 ~]# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.1.61 Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the 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 ~]#
Article Source: