{"id":22900172,"url":"https://github.com/srchen1987/mysql_install","last_synced_at":"2025-04-01T04:56:57.995Z","repository":{"id":37721622,"uuid":"188819701","full_name":"srchen1987/mysql_install","owner":"srchen1987","description":"centos7 系列快速安装mysql的脚本","archived":false,"fork":false,"pushed_at":"2024-11-16T11:16:18.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T03:23:14.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srchen1987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-27T10:08:30.000Z","updated_at":"2024-11-16T11:16:21.000Z","dependencies_parsed_at":"2023-01-30T21:31:04.626Z","dependency_job_id":null,"html_url":"https://github.com/srchen1987/mysql_install","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fmysql_install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fmysql_install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fmysql_install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fmysql_install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srchen1987","download_url":"https://codeload.github.com/srchen1987/mysql_install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586048,"owners_count":20801026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T01:18:16.386Z","updated_at":"2025-04-01T04:56:57.958Z","avatar_url":"https://github.com/srchen1987.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# mysql_install \n本脚本的作用是一键安装mysql \n本脚本在centos7 下运行 mysql安装包为glibc版\n考虑下载过慢的情况 mysql安装包请自行下载\nhttps://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-linux-glibc2.12-x86_64.tar.xz\n\n也可通过 wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-linux-glibc2.12-x86_64.tar.xz\n\n将安装包解压到本脚本同级目录\n\n\n切换root 用户 执行 source install.sh 即可\n\n\n安装过程中会提醒是否启动mysql服务，键入y 则启动。\n过程中会生成mysql密码\n\n   \n\t2019-05-27T10:25:32.625971Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: *,d!DuW=p3a:\n\n\nmy_template.cnf为模板文件 请根据实际情况进行调整\n\ninstall.sh 中 MYSQL8=\"/usr/local/mysql8\" 是安装的位置 这个可以自定义\n\n\n补充:\n\nmysql -uroot -p\n\nmysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory\n\n出现这种错误需要通过软连接库来解决 ln -s /usr/lib64/libtinfo.so.6.2 /usr/lib64/libtinfo.so.5 \n\n更改当前用户密码 alter user user() identified by \"srchen1987\";\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fmysql_install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrchen1987%2Fmysql_install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fmysql_install/lists"}