隨筆-295  評論-26  文章-1  trackbacks-0

          1. Change root user

          su - ## OR ## sudo -i

          2. Install Remi repository

          ## CentOS 6 and Red Hat (RHEL) 6 ## rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

           

          3. Check Available MySQL versions

          yum --enablerepo=remi,remi-test list mysql mysql-server

          Output:

          Loaded plugins: changelog, fastestmirror, presto, refresh-packagekit ... remi                                                            | 3.0 kB     00:00      remi/primary_db                                                 | 106 kB     00:00      Available Packages mysql.i686                               5.5.37-1.fc18.remi                        @remi mysql-server.i686                        5.5.37-1.fc18.remi                        @remi

          4. Update or Install MySQL 5.5.37

          yum --enablerepo=remi install mysql mysql-server

           

          5. Start MySQL server and autostart MySQL on boot

          /etc/init.d/mysqld start ## use restart after update ## OR ## service mysqld start ## use restart after update   chkconfig --levels 235 mysqld on

           

          6. MySQL Secure Installation

          /usr/bin/mysql_secure_installation

           

          7. Connect to MySQL database (localhost) with password

          mysql -u root -p   ## OR ## mysql -h localhost -u root -p

           

          8. Create Database, Create MySQL User and Enable Remote Connections to MySQL Database

          復制代碼
          ## CREATE DATABASE ## mysql> CREATE DATABASE webdb;   ## CREATE USER ## mysql> CREATE USER 'webdb_user'@'10.0.15.25' IDENTIFIED BY 'password123';   ## GRANT PERMISSIONS ## mysql> GRANT ALL ON webdb.* TO 'webdb_user'@'10.0.15.25';   ##  FLUSH PRIVILEGES, Tell the server TO reload the GRANT TABLES  ## mysql> FLUSH PRIVILEGES;
          復制代碼


          大盤預測 國富論
          posted on 2015-12-07 19:36 華夢行 閱讀(189) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 大田县| 合水县| 泰州市| 平潭县| 博客| 铜梁县| 南京市| 岳普湖县| 德钦县| 普洱| 乌拉特中旗| 文水县| 焦作市| 东乡县| 宁陕县| 福贡县| 镇雄县| 洞口县| 从化市| 阜阳市| 无棣县| 尤溪县| 黄大仙区| 峨边| 临夏县| 连平县| 岳阳市| 西乌珠穆沁旗| 绥滨县| 天全县| 准格尔旗| 科技| 日照市| 保定市| 宣威市| 磴口县| 南陵县| 扶绥县| 改则县| 克拉玛依市| 镇平县|