{"id":11342,"date":"2022-08-27T10:26:32","date_gmt":"2022-08-27T02:26:32","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=11342"},"modified":"2022-08-27T21:11:03","modified_gmt":"2022-08-27T13:11:03","slug":"mysql-database-server-set-up","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mysql-database-server-set-up.html","title":{"rendered":"MySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u67b6\u8bbe"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMySQL\u6570\u636e\u5e93\u662fLinux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7528\u5f97\u6700\u591a\u7684\u6570\u636e\u5e93\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u7684\u4e0e\u5176\u5b83\u670d\u52a1\u5668\u96c6\u6210\u5728\u4e00\u8d77\uff0c\u5982Apache\u3001Vsftpd\u3001Postfix\u7b49\u3002\u4e0b\u9762\u4ecb\u7ecdRHEL 6\u5e73\u53f0MySQL\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u5b89\u88c5\u65b9\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"mysql11\"<\/p>\n

\u5b89\u88c5\u5b8c\u6574\u7684MySQL\u6570\u636e\u5e93\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2aRPM\u5305\u6587\u4ef6\uff1a<\/strong><\/p>\n

    \n
  1. perl-DBI-1.609-4.e16.i686.rpm:Perl\u8bed\u8a00\u7684\u6570\u636eAPI<\/li>\n
  2. perl-DBD-MySQL-4.013-3.e16.i686.rpm:MySQL\u4e0ePerl\u8bed\u8a00\u7684\u63a5\u53e3\u7a0b\u5e8f\u5305<\/li>\n
  3. mysql-5.1.61-4.e16.i686.rpm:MySQL\u6570\u636e\u5e93\u5ba2\u6237\u7aef\u7a0b\u5e8f<\/li>\n
  4. mysql-connector-odbc-5.1.5r1144-7.e16.i686.rpm:MySQL\u6570\u636e\u5e93\u4e0eODBC\u7684\u8fde\u63a5\u5668<\/li>\n
  5. mysql-server-5.1.61-4.e16.i686.rpm:mysql\u6570\u636e\u5e93\u670d\u52a1\u5668\u7a0b\u5e8f<\/li>\n<\/ol>\n

    \u628a\u4e0a\u8ff0\u6587\u4ef6\u590d\u5236\u5230\u5f53\u524d\u76ee\u5f55\u540e\uff0c\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/strong><\/p>\n

    # rpm -ivh\u00a0perl-DBI-1.609-4.e16.i686.rpm\r\n\r\n# rpm -ivh\u00a0perl-DBD-MySQL-4.013-3.e16.i686.rpm\r\n\r\n# rpm -ivh\u00a0mysql-5.1.61-4.e16.i686.rpm\r\n\r\n# rpm -ivh\u00a0mysql-connector-odbc-5.1.5r1144-7.e16.i686.rpm\r\n\r\n# rpm -ivh\u00a0mysql-server-5.1.61-4.e16.i686.rpm<\/pre>\n

    \u5b89\u88c5\u6210\u529f\u540e\uff0c\u6709\u5173MySQL\u670d\u52a1\u5668\u8f6f\u4ef6\u7684\u51e0\u4e2a\u91cd\u8981\u6587\u4ef6\u5206\u5e03\u5982\u4e0b\uff1a<\/strong><\/p>\n

      \n
    1. \/etc\/rc.d\/init.d\/mysqld:MySQL\u670d\u52a1\u5668\u542f\u52a8\u811a\u672c<\/li>\n
    2. \/usr\/bin\/mysqlshow:\u663e\u793a\u6570\u636e\u5e93\u3001\u8868\u548c\u5217\u4fe1\u606f<\/li>\n
    3. \/usr\/libexec\/mysqld:\u670d\u52a1\u5668\u7684\u8fdb\u7a0b\u7a0b\u5e8f\u6587\u4ef6<\/li>\n
    4. \/usr\/libexec\/mysqlmanager:\u5b9e\u4f8b\u7ba1\u7406\u7a0b\u5e8f\u6587\u4ef6<\/li>\n
    5. \/usr\/share\/doc\/:\u5b58\u653e\u8bf4\u660e\u6587\u4ef6\u7684\u76ee\u5f55<\/li>\n
    6. \/usr\/share\/man\/man 1\/......:\u5b58\u653e\u624b\u518c\u9875\u7684\u76eem\u5f55<\/li>\n
    7. \/var\/lib\/mysql\/:\u670d\u52a1\u5668\u6570\u636e\u5e93\u6587\u4ef6\u5b58\u50a8\u76ee\u5f55<\/li>\n
    8. \/var\/log\/mysqld.log:MySQL\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u6587\u4ef6<\/li>\n<\/ol>\n

      \u4e3a\u4e86\u8fd0\u884cmysql\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/strong><\/p>\n

      # \/etc\/rc.d\/init.d\/mysqld start<\/pre>\n

      \u518d\u8f93\u5165\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u4e00\u4e0b\u8fdb\u7a0b\u662f\u5426\u542f\u52a8\uff1a<\/strong><\/p>\n

      #ps -eaf | grep mysqld<\/pre>\n

      \u5f53\u8fdb\u7a0b\u542f\u52a8\u540e\uff0c\u53ef\u4ee5\u7528\u4e00\u4e0b\u547d\u4ee4\u67e5\u770b\u4e00\u4e0bmysqld\u9ed8\u8ba4\u7684\u76d1\u542c\u7aef\u53e3\u662f\u5426\u5df2\u7ecf\u6253\u5f00\uff1a<\/strong><\/p>\n

      # netstat -anlp | grep 3306\r\ntcp     0      0 0.0.0.0:3306       0.0.0.0:*     LISTEN        1121\/mysqld<\/pre>\n

      \u53ef\u89c1\uff0c3306\u7aef\u53e3\u5df2\u7ecf\u5904\u4e8e\u6253\u5f00\u72b6\u6001\uff0c\u4e3a\u4e86\u786e\u4fdd\u7f51\u7edc\u4e0a\u7684\u5ba2\u6237\u7aef\u80fd\u8bbf\u95eeMySQL\u670d\u52a1\u5668\uff0c\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5f00\u653e\u8fd9\u4e2a\u7aef\u53e3\uff1a<\/strong><\/p>\n

      # iptables -I INPUT -p tcp --dport  3306  -j  ACCEPT<\/pre>\n

      \u4e0a\u8ff0\u8fc7\u7a0b\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5ba2\u6237\u7aef\u8fde\u63a5\u5230MySQL\u670d\u52a1\u5668\u4e86\u3002\u6700\u540e\u4e3a\u4e86\u786e\u4fdd\u670d\u52a1\u5668\u5df2\u6b63\u5e38\u542f\u52a8\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\uff1a<\/strong><\/p>\n

      # mysqladmin version<\/pre>\n

      \u5f53\u51fa\u73b0\u7248\u672c\u8be6\u60c5\u65f6\uff0c\u5219\u8868\u660eMySQL\u670d\u52a1\u5668\u5df2\u7ecf\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n

      \n

      \u672c\u6587\u539f\u521b\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/mysql-database-server-set-up.html<\/a>\u4f5c\u8005\uff1a\u51af\u742a\uff0c\u5ba1\u6838\u5458\uff1a\u5f20\u5b8f\u5b87<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

      \u5bfc\u8bfb MySQL\u6570\u636e\u5e93\u662fLinux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7528\u5f97\u6700\u591a\u7684\u6570\u636e\u5e93\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u7684\u4e0e\u5176\u5b83\u670d\u52a1\u5668\u96c6\u6210\u5728\u4e00\u8d77\uff0c\u5982A […]<\/p>\n","protected":false},"author":63,"featured_media":4956,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-11342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/11342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=11342"}],"version-history":[{"count":18,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/11342\/revisions"}],"predecessor-version":[{"id":251355,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/11342\/revisions\/251355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/4956"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=11342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=11342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=11342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}