
저는 아래 순서를 사용합니다.
[root@localhost /]# yum install -y mysql mysql-server mysql-devel
설치하기 위해서 mysql
.
설치 후 다음을 통해 mysql을 시작하고 싶습니다.
[root@localhost /]# /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: there is no file or directory
하지만 알다시피, 이런 식으로 시작할 수는 없습니다.
그래서 저는 다음을 사용합니다:
find / -name mysqld
mysqld를 찾으려면 다음을 얻습니다.
[root@localhost /]# find / -name mysqld
/usr/libexec/mysqld
그래서 저는 다음을 사용합니다:
/usr/libexec/mysqld start
mysql을 시작하려고 하는데 오류가 발생합니다.
[root@localhost /]# /usr/libexec/mysqld start
2017-05-19 14:28:17 139762539387072 [Warning] option 'open_files_limit': unsigned value 18446744073709551615 adjusted to 4294967295
2017-05-19 14:28:17 139762539387072 [Note] /usr/libexec/mysqld (mysqld 10.1.20-MariaDB) starting as process 82223 ...
2017-05-19 14:28:17 139762539387072 [Warning] Could not increase number of max_open_files to more than 1024 (request: 5035)
2017-05-19 14:28:17 139762539387072 [ERROR] WSREP: rsync SST method requires wsrep_cluster_address to be configured on startup.
그리고 여기에 갇히세요.
해결 방법을 아는 사람이 있나요?
답변1
CentOS 7에서는 다음 명령을 사용합니다.
$ sudo systemctl start mysqld
그리고 부팅 시 mysqld가 자동으로 시작되도록 하려면 다음을 수행할 수 있습니다.
$ sudo systemctl enable mysqld
편집: MySQL을 설치했고 대신 MariaDB를 설치하려고 하지 않는 것이 확실합니까? MariaDB는 CentOS의 기본 데이터베이스 엔진이라고 생각합니다. 실제로 설치되었는지 확인할 수 있습니다.
$ rpm -q mysqld
그렇지 않으면 지침을 따르는 것이 좋습니다.여기