본문 바로가기

MySQL_Maria5

[MAC] brew로 mariadb 설치 - Homebrew 설치 후에는 MariaDB Server 는 다음과 같이 설치 가능합니다. brew install mariadb - 설치 후에는 다음으로 MariaDB Server를 시작합니다.: mysql.server start brew services start mariadb - MariaDB Server 시작후에는 사용자 계정으로 로그인하면 됩니다.: mysql sudo mysql -u root - 만약 위 링크를 따라서 설치가 잘 됐다면 아래와 같이 패스워드 변경이 가능합니다. (패스워드 변경 없이 Dbeaver로 접속 불가) use mysql set password for 'root'@'localhost' = password('바꿀_비밀번호'); mysql -uroot -p바꾼_비밀번호 2023. 3. 19.
[MariaDB] 전체 테이블 DROP SET @tables = NULL; SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables FROM information_schema.tables WHERE table_schema = '[테이블 스키마명]'; -- specify DB name here. SET @tables = CONCAT('DROP TABLE ', @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; 2020. 7. 24.
Mysql 8 설치 후 접속 오류 caching_sha2_password 1. my.ini 설정 변경 #default_authentication_plugin=caching_sha2_password default_authentication_plugin=mysql_native_password 2. 패스워드 변경 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 2019. 4. 21.
UBUNTU 설치 및 원격 접속 허용 # 설치apt-get updateapt-get install mysql-serverapt-get install mariadb-server # 사용자 추가create user '[user]'@'%' identified by '[password]';grant all privileges on *.* to '[user]'@'%';grant all privileges on [db].* to '[user]'@'%'; # 원격허용(Root 접속)cd /etc/mysql/mysql.conf.dvi mysqld.cnf /etc/mysql/mariadb.conf.d$ sudo vi 50-server.cnf # 서비스 재시작sudo service mysql restart 2018. 6. 25.