EverKB

Knowledge Base Ever

CentOS7에 MariaDB10.4 설치

2019-11-15 12:14:05

라벨: CentOS, MariaDB, CentOS7, MariaDB10.4, MariaDB 설치

CentOS7에서 YUM은 기본적으로 MariaDB5.5.60을 설치하지만 최신 버전을 설치하려면 먼저 YUM 구성 파일을 작성해야합니다.
vim /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.4 CentOS repository list - created 2019-08-03 17:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
그런 다음 YUM 명령을 사용하여 MariaDB 서버와 클라이언트를 설치하고 부팅시 자동으로 실행되도록 설정 한 후 시작하십시오.
sudo yum -y install MariaDB-server MariaDB-client

systemctl enable mariadb
systemctl start mariadb
사용자를 작성하고 권한을 부여하십시오.
CREATE USER 'username'@'host' IDENTIFIED BY 'password';

GRANT privileges ON database_name.table_name TO 'username'@'host';
다른 사용자에게 권한을 부여 할 수있는 사용자를 작성해야하는 경우 다음을 수행해야합니다.
GRANT privileges ON database_name.table_name TO 'username'@'host' WITH GRANT OPTION;

라벨

CentOS7 CentOS PHP Linux Python3 Python MySQL MariaDB YUM JavaScript caching_sha2_password HTML mysql_native_password PHP7 CSS Redis MySQL8 daemon HTTP particles.js Slim Vincent Garreau Failed to build these modules: _uuid MongoDB Sudo DATE_ADD ip command pg_bha.conf SQL Server width Compiling Apache Frameworks MySQL-python scrollbar Tcp BBR Apache2.4 Elasticsearch libpython3.7m.so.1.0 PHPStorm ss5-3.8.9 CURLOPT_POSTFIELDS NodeJs show VIM Bluetooth Failed to build these modules: _ctypes Minimal ISO substr date sub INTERVAL PECL SQL Date Funcitons Wi-Fi CodeIgniter font-size root Tag Cloud apache httpd dual network interfaces Laravel ss5 CURLFille horiz-align node.js ShadowsocksR vertical-align BarManager exec mb_substr PyCharm SUBDATE date add IntelliJIDEA PEAR SOCKS5 Proxy Server WebStorm Chrome find remi Tag Apache du jQuery PHP5.5 src cURL hide nginx Shadowsocks-Python V2Ray availability eth0 MariaDB10.4 PostgreSQL sub folder date Install MongoDB pdo_sqlsrv SOCKS5 Web Server File Upload mssql-tools register_shutdown_function Symfony ADDDATE DevExpress JetBrain php-fpm sqlsrv Zend Framework height network interface Shadowsocks-Libev unixODBC-devel Aura error_get_last Port 80 string data INDENTIFIED BY password policy requirements SOCKS Web Development Fedora Media Writer msodbcsql Redis5 SVN absolute Deepin jemalloc SQLAlchemy convert FuelPHP mysqlclient Shadowsocks toggle at-symbol Error Control Operator margin PHPUnit Framework ss5.passwd daemon process IIS password SOCKET vps center Fatal Errors MongoDB4 sudoers .htaccess DATE_SUB Phalcon SQL Server 2017 WiFi Compiling PHP frequency conflict set_error_handler TestCase apr Elasticsearch7.3 PHPUnit ss5.conf

최신 기사