CentOS에서 mysql을 오프라인으로 설치하는 방법
centos에서 mysql을 오프라인으로 설치하는 방법: 1. lib의 모든 종속 항목을 Linux에 업로드하고 yum 명령을 사용하여 설치합니다. 2. MySQL의 압축을 풀고 설치하려는 디렉터리에 파일을 복사합니다. .cnf 구성 파일 4. 시작 스크립트를 리소스 디렉터리에 복사하고 시작 스크립트를 수정합니다. 5. mysqld 서비스를 시스템 서비스에 추가합니다. 6. mysql 클라이언트를 환경 변수에 구성하고 구성을 적용합니다.
이 튜토리얼의 운영 환경: centOS 7 시스템, MySQL 버전 5.6, Dell G3 컴퓨터.
centos에서 mysql을 오프라인으로 설치하는 방법은 무엇입니까?
centOS 7 오프라인 설치 MySQL 5.6
환경 준비
1. 오프라인 centOS 7(여기서 centOS 7 최소 설치)
2.nginx 설치 파일(mysql-5.6.51-linux-) glibc2.12-x86_64.tar.gz는 아래 링크에 있습니다. 직접 다운로드하거나 공식 웹사이트에 가서 최신 버전을 다운로드하세요.)
3.nginx 종속 패키지(현재 lib 디렉토리에 위치) 직접 다운로드하세요)
현재 설치에 필요한 모든 패키지와 종속 항목은 다음 주소
https://gitee.com/livekeys/linux-offline-installation-software
1에서 해당 소프트웨어에 따라 다운로드할 수 있습니다. , 이전 구성 파일 /etc/my.cnf
[root@localhost ~]# rpm -qa | grep mariadb* mariadb-libs-5.5.56-2.el7.x86_64 [root@localhost ~]# rpm -e mariadb-libs --nodeps [root@localhost ~]# rpm -qa | grep mariadb* [root@localhost ~]# rm -f /etc/my.cnf [root@localhost ~]#로그인 후 복사2를 삭제합니다. 종속성 설치
lib의 모든 종속성을 Linux에 업로드하고 명령으로 설치합니다
2. 새로운 mysql 그룹과 mysql 사용자를 생성하고 mysql 디렉토리를 mysql 사용자 그룹으로 바꿉니다.[root@localhost lib]# yum -y localinstall *.rpm로그인 후 복사3. 압축을 풀고 파일을 복사합니다. 설치하려는 디렉토리로 이동합니다(여기서는 설치 디렉토리로 /opt/mysql을 사용합니다).
[root@localhost mysql_install]# tar -xzvf mysql-5.6.51-linux-glibc2.12-x86_64.tar.gz [root@localhost mysql_install]# ls lib mysql-5.6.51-linux-glibc2.12-x86_64 mysql-5.6.51-linux-glibc2.12-x86_64.tar.gz [root@localhost mysql_install]# cp -R mysql-5.6.51-linux-glibc2.12-x86_64 /opt/mysql [root@localhost mysql_install]# cd /opt/mysql [root@localhost mysql]# ls bin data docs include lib LICENSE man mysql-test README scripts share sql-bench support-files로그인 후 복사
[root@localhost mysql]# groupadd mysql
[root@localhost mysql]# useradd -g mysql mysql
[root@localhost mysql]# cd ..
[root@localhost opt]# ls
mysql
[root@localhost opt]# chown -R mysql:mysql mysql
[root@localhost opt]# ll
total 0
drwxr-xr-x. 13 mysql mysql 191 Mar 23 01:42 mysql
[root@localhost opt]# cd mysql
[root@localhost mysql]# ll
total 224
drwxr-xr-x. 2 mysql mysql 4096 Mar 23 01:42 bin
drwxr-xr-x. 3 mysql mysql 18 Mar 23 01:42 data
drwxr-xr-x. 2 mysql mysql 55 Mar 23 01:42 docs
drwxr-xr-x. 3 mysql mysql 4096 Mar 23 01:42 include
drwxr-xr-x. 3 mysql mysql 4096 Mar 23 01:42 lib
-rw-r--r--. 1 mysql mysql 200256 Mar 23 01:42 LICENSE
drwxr-xr-x. 4 mysql mysql 30 Mar 23 01:42 man
drwxr-xr-x. 10 mysql mysql 4096 Mar 23 01:42 mysql-test
-rw-r--r--. 1 mysql mysql 566 Mar 23 01:42 README
drwxr-xr-x. 2 mysql mysql 30 Mar 23 01:42 scripts
drwxr-xr-x. 28 mysql mysql 4096 Mar 23 01:42 share
drwxr-xr-x. 4 mysql mysql 4096 Mar 23 01:42 sql-bench
drwxr-xr-x. 2 mysql mysql 136 Mar 23 01:42 support-files
로그인 후 복사
3. 새로운 /var/를 생성합니다. lib/mysql 디렉토리는 mysq.sock을 저장하는 데 사용되며(다른 디렉토리를 생성할 수도 있음), 디렉토리 그룹을 myql[root@localhost mysql]# groupadd mysql [root@localhost mysql]# useradd -g mysql mysql [root@localhost mysql]# cd .. [root@localhost opt]# ls mysql [root@localhost opt]# chown -R mysql:mysql mysql [root@localhost opt]# ll total 0 drwxr-xr-x. 13 mysql mysql 191 Mar 23 01:42 mysql [root@localhost opt]# cd mysql [root@localhost mysql]# ll total 224 drwxr-xr-x. 2 mysql mysql 4096 Mar 23 01:42 bin drwxr-xr-x. 3 mysql mysql 18 Mar 23 01:42 data drwxr-xr-x. 2 mysql mysql 55 Mar 23 01:42 docs drwxr-xr-x. 3 mysql mysql 4096 Mar 23 01:42 include drwxr-xr-x. 3 mysql mysql 4096 Mar 23 01:42 lib -rw-r--r--. 1 mysql mysql 200256 Mar 23 01:42 LICENSE drwxr-xr-x. 4 mysql mysql 30 Mar 23 01:42 man drwxr-xr-x. 10 mysql mysql 4096 Mar 23 01:42 mysql-test -rw-r--r--. 1 mysql mysql 566 Mar 23 01:42 README drwxr-xr-x. 2 mysql mysql 30 Mar 23 01:42 scripts drwxr-xr-x. 28 mysql mysql 4096 Mar 23 01:42 share drwxr-xr-x. 4 mysql mysql 4096 Mar 23 01:42 sql-bench drwxr-xr-x. 2 mysql mysql 136 Mar 23 01:42 support-files
[root@localhost mysql]# mkdir /var/lib/mysql [root@localhost mysql]# chown -R mysql:mysql /var/lib/mysql [root@localhost mysql]# ls -al /var/lib/mysql total 4 drwxr-xr-x. 2 mysql mysql 6 Mar 23 01:51 . drwxr-xr-x. 26 root root 4096 Mar 23 01:51 ..
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --basedir=/opt/mysql --datadir=/opt/mysql/data Installing MySQL system tables...2022-03-23 01:53:51 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2022-03-23 01:53:51 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 2022-03-23 01:53:51 0 [Note] /opt/mysql/bin/mysqld (mysqld 5.6.51) starting as process 13346 ... 2022-03-23 01:53:51 13346 [Note] InnoDB: Using atomics to ref count buffer pool pages 2022-03-23 01:53:51 13346 [Note] InnoDB: The InnoDB memory heap is disabled 2022-03-23 01:53:51 13346 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-03-23 01:53:51 13346 [Note] InnoDB: Memory barrier is not used 2022-03-23 01:53:51 13346 [Note] InnoDB: Compressed tables use zlib 1.2.11 2022-03-23 01:53:51 13346 [Note] InnoDB: Using Linux native AIO 2022-03-23 01:53:51 13346 [Note] InnoDB: Using CPU crc32 instructions 2022-03-23 01:53:51 13346 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2022-03-23 01:53:51 13346 [Note] InnoDB: Completed initialization of buffer pool 2022-03-23 01:53:51 13346 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created! 2022-03-23 01:53:51 13346 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB 2022-03-23 01:53:51 13346 [Note] InnoDB: Database physically writes the file full: wait... 2022-03-23 01:53:51 13346 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB 2022-03-23 01:53:51 13346 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB 2022-03-23 01:53:51 13346 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0 2022-03-23 01:53:51 13346 [Warning] InnoDB: New log files created, LSN=45781 2022-03-23 01:53:51 13346 [Note] InnoDB: Doublewrite buffer not found: creating new 2022-03-23 01:53:51 13346 [Note] InnoDB: Doublewrite buffer created 2022-03-23 01:53:51 13346 [Note] InnoDB: 128 rollback segment(s) are active. 2022-03-23 01:53:51 13346 [Warning] InnoDB: Creating foreign key constraint system tables. 2022-03-23 01:53:51 13346 [Note] InnoDB: Foreign key constraint system tables created 2022-03-23 01:53:51 13346 [Note] InnoDB: Creating tablespace and datafile system tables. 2022-03-23 01:53:51 13346 [Note] InnoDB: Tablespace and datafile system tables created. 2022-03-23 01:53:51 13346 [Note] InnoDB: Waiting for purge to start 2022-03-23 01:53:51 13346 [Note] InnoDB: 5.6.51 started; log sequence number 0 2022-03-23 01:53:51 13346 [Note] RSA private key file not found: /opt/mysql/data//private_key.pem. Some authentication plugins will not work. 2022-03-23 01:53:51 13346 [Note] RSA public key file not found: /opt/mysql/data//public_key.pem. Some authentication plugins will not work. 2022-03-23 01:53:51 13346 [Note] Binlog end 2022-03-23 01:53:51 13346 [Note] InnoDB: FTS optimize thread exiting. 2022-03-23 01:53:51 13346 [Note] InnoDB: Starting shutdown... 2022-03-23 01:53:53 13346 [Note] InnoDB: Shutdown completed; log sequence number 1625977 OK Filling help tables...2022-03-23 01:53:53 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2022-03-23 01:53:53 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 2022-03-23 01:53:53 0 [Note] /opt/mysql/bin/mysqld (mysqld 5.6.51) starting as process 13368 ... 2022-03-23 01:53:53 13368 [Note] InnoDB: Using atomics to ref count buffer pool pages 2022-03-23 01:53:53 13368 [Note] InnoDB: The InnoDB memory heap is disabled 2022-03-23 01:53:53 13368 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-03-23 01:53:53 13368 [Note] InnoDB: Memory barrier is not used 2022-03-23 01:53:53 13368 [Note] InnoDB: Compressed tables use zlib 1.2.11 2022-03-23 01:53:53 13368 [Note] InnoDB: Using Linux native AIO 2022-03-23 01:53:53 13368 [Note] InnoDB: Using CPU crc32 instructions 2022-03-23 01:53:53 13368 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2022-03-23 01:53:53 13368 [Note] InnoDB: Completed initialization of buffer pool 2022-03-23 01:53:53 13368 [Note] InnoDB: Highest supported file format is Barracuda. 2022-03-23 01:53:53 13368 [Note] InnoDB: 128 rollback segment(s) are active. 2022-03-23 01:53:53 13368 [Note] InnoDB: Waiting for purge to start 2022-03-23 01:53:53 13368 [Note] InnoDB: 5.6.51 started; log sequence number 1625977 2022-03-23 01:53:53 13368 [Note] RSA private key file not found: /opt/mysql/data//private_key.pem. Some authentication plugins will not work. 2022-03-23 01:53:53 13368 [Note] RSA public key file not found: /opt/mysql/data//public_key.pem. Some authentication plugins will not work. 2022-03-23 01:53:53 13368 [Note] Binlog end 2022-03-23 01:53:53 13368 [Note] InnoDB: FTS optimize thread exiting. 2022-03-23 01:53:53 13368 [Note] InnoDB: Starting shutdown... 2022-03-23 01:53:55 13368 [Note] InnoDB: Shutdown completed; log sequence number 1625987 OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /opt/mysql/bin/mysqladmin -u root password 'new-password' /opt/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password' Alternatively you can run: /opt/mysql/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd . ; /opt/mysql/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems at http://bugs.mysql.com/ The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com New default config file was created as /opt/mysql/my.cnf and will be used by default by the server when you start it. You may edit this file to change server settings
[root@localhost mysql]# cp ./support-files/my-default.cnf /etc/my.cnf [root@localhost mysql]# chown mysql:mysql /etc/my.cnf [root@localhost mysql]# chmod 644 /etc/my.cnf
my.cnf 구성 파일의 내용은 다음과 같습니다.
(여기서 필요에 따라 다른 구성을 수정하세요.)다음 사항에 유의하세요. 포인트:
socket
위의 세 번째 단계를 작성합니다. 새로 생성된 디렉터리basedir
는 mysql 설치 디렉터리입니다.datadir
는 데이터 디렉터리입니다(여기서는 mysql 설치 디렉터리 아래의 데이터 디렉터리입니다). li>
[mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 socket=/var/lib/mysql/mysql.sock [mysqld] skip-name-resolve #设置 13306 端口 port = 13306 socket=/var/lib/mysql/mysql.sock # 设置mysql的安装目录 basedir=/opt/mysql # 设置mysql数据库的数据的存放目录 datadir=/opt/mysql/data # 允许最大连接数 max_connections=200 # 服务端使用的字符集默认为8比特编码的latin1字符集 character-set-server=utf8 # 创建新表时将使用的默认存储引擎 default-storage-engine=INNODB lower_case_table_name=1 max_allowed_packet=16M
- 6. script
socket
写上面我们第三步新建的那个目录 basedir
为 mysql 安装目录datadir
为数据目录(这里是 mysql 安装目录下的 data 目录)
[root@localhost mysql]# cp ./support-files/mysql.server /etc/rc.d/init.d/mysqld [root@localhost mysql]# chmod +x /etc/rc.d/init.d/mysqld [root@localhost mysql]# chown mysql:mysql /etc/rc.d/init.d/mysqld
[root@localhost mysql]# vim /etc/rc.d/init.d/mysqld
5、复制启动脚本到资源目录
basedir=/opt/mysql datadir=/opt/mysql/data
6、修改启动脚本
[root@localhost mysql]# chkconfig --add mysqld [root@localhost mysql]# chkconfig --list mysqld Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
注:因为,我没有将 mysql 安装在 /usr/local/mysql 目录下,所以在启动文件里需要修改以下两个值
[root@localhost mysql]# systemctl start mysql [root@localhost mysql]# systemctl status mysql ● mysqld.service - LSB: start and stop MySQL Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled) Active: active (running) since Wed 2022-03-23 02:11:17 EDT; 5s ago Docs: man:systemd-sysv-generator(8) Process: 13452 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=0/SUCCESS) CGroup: /system.slice/mysqld.service ├─13463 /bin/sh /opt/mysql/bin/mysqld_safe --datadir=/opt/mysql/data --pid-file=/opt/mysql/data/lo... └─13688 /opt/mysql/bin/mysqld --basedir=/opt/mysql --datadir=/opt/mysql/data --plugin-dir=/opt/mys... Mar 23 02:11:16 localhost.localdomain systemd[1]: Starting LSB: start and stop MySQL... Mar 23 02:11:16 localhost.localdomain mysqld[13452]: Starting MySQL.Logging to '/opt/mysql/data/localhost....r'. Mar 23 02:11:17 localhost.localdomain mysqld[13452]: SUCCESS! Mar 23 02:11:17 localhost.localdomain systemd[1]: Started LSB: start and stop MySQL. Hint: Some lines were ellipsized, use -l to show in full.
7、将 mysqld 服务加入到系统服务里面
[root@localhost mysql]# vim /etc/profile # 在末尾增加以下两行 export MYSQL_HOME=/opt/mysql export PATH=$MYSQL_HOME/bin:$PATH [root@localhost mysql]# source /etc/profile
8、使用命令 systemctl 启动 mysql 服务(Active 状态为 active (running) 即为启动成功)
[root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.51 MySQL Community Server (GPL) Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
9、将 mysql 客户端配置到环境变量中,并使配置生效
mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> update user set password=password('P@ssw0rd') where user='root' and host='localhost'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0
10、测试是否能连接 mysql
注:第一次登录不需要密码,直接回车就行
mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> grant all privileges on *.* to 'root'@'%' identified by 'P@ssw0rd' with grant option; Query OK, 0 rows affected (0.00 sec)
11、配置 root
账号的密码为 P@ssw0rd
[root@localhost ~]# systemctl restart mysql [root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.51 MySQL Community Server (GPL) Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+ 4 rows in set (0.00 sec) mysql>
rrreee
7. mysqld 서비스를 시스템 서비스에 추가합니다.rrreee
8 명령 systemctl을 사용하여 mysql 서비스를 시작합니다. (활성 상태는 시작이 성공했음을 의미합니다.)rrreee9 mysql 클라이언트를 환경 변수에 구성하고 구성을 적용합니다 rrreee
10. mysql에 연결할 수 있는지 테스트하세요. 참고:12. 원격 호스트 로그인을 설정합니다🎜rrreee🎜13. mysqld 서비스를 다시 시작하고 로그인을 테스트합니다🎜rrreee🎜🎜이제 mysql 5.6 설치가 완료되었습니다🎜🎜🎜🎜 실수가 있으면 메시지를 남겨서 수정하세요. 감사합니다! 🎜🎜추천 학습: "🎜MySQL 비디오 튜토리얼🎜"🎜🎜첫 번째 로그인에는 비밀번호가 필요하지 않습니다. Enter를 누르기만 하면 됩니다.rrreee11 구성
rrreee루트 계정의 비밀번호는 P@ssw0rd
위 내용은 CentOS에서 mysql을 오프라인으로 설치하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











MySQL은 설치가 간단하고 강력하며 데이터를 쉽게 관리하기 쉽기 때문에 초보자에게 적합합니다. 1. 다양한 운영 체제에 적합한 간단한 설치 및 구성. 2. 데이터베이스 및 테이블 작성, 삽입, 쿼리, 업데이트 및 삭제와 같은 기본 작업을 지원합니다. 3. 조인 작업 및 하위 쿼리와 같은 고급 기능을 제공합니다. 4. 인덱싱, 쿼리 최적화 및 테이블 파티셔닝을 통해 성능을 향상시킬 수 있습니다. 5. 데이터 보안 및 일관성을 보장하기위한 지원 백업, 복구 및 보안 조치.

Navicat 자체는 데이터베이스 비밀번호를 저장하지 않으며 암호화 된 암호 만 검색 할 수 있습니다. 솔루션 : 1. 비밀번호 관리자를 확인하십시오. 2. Navicat의 "비밀번호 기억"기능을 확인하십시오. 3. 데이터베이스 비밀번호를 재설정합니다. 4. 데이터베이스 관리자에게 문의하십시오.

Navicat Premium을 사용하여 데이터베이스 생성 : 데이터베이스 서버에 연결하고 연결 매개 변수를 입력하십시오. 서버를 마우스 오른쪽 버튼으로 클릭하고 데이터베이스 생성을 선택하십시오. 새 데이터베이스의 이름과 지정된 문자 세트 및 Collation의 이름을 입력하십시오. 새 데이터베이스에 연결하고 객체 브라우저에서 테이블을 만듭니다. 테이블을 마우스 오른쪽 버튼으로 클릭하고 데이터 삽입을 선택하여 데이터를 삽입하십시오.

MariaDB 용 Navicat은 암호가 암호화 된 양식으로 저장되므로 데이터베이스 비밀번호를 직접 볼 수 없습니다. 데이터베이스 보안을 보장하려면 비밀번호를 재설정하는 세 가지 방법이 있습니다. Navicat을 통해 비밀번호를 재설정하고 복잡한 비밀번호를 설정하십시오. 구성 파일을 봅니다 (권장되지 않음, 위험이 높음). 시스템 명령 줄 도구를 사용하십시오 (권장되지 않으면 명령 줄 도구에 능숙해야 함).

MySQL은 오픈 소스 관계형 데이터베이스 관리 시스템입니다. 1) 데이터베이스 및 테이블 작성 : CreateAbase 및 CreateTable 명령을 사용하십시오. 2) 기본 작업 : 삽입, 업데이트, 삭제 및 선택. 3) 고급 운영 : 가입, 하위 쿼리 및 거래 처리. 4) 디버깅 기술 : 확인, 데이터 유형 및 권한을 확인하십시오. 5) 최적화 제안 : 인덱스 사용, 선택을 피하고 거래를 사용하십시오.

Centos 인터뷰에 대한 자주 묻는 질문과 답변에는 다음이 포함됩니다. 1. yum 또는 dnf 명령을 사용하여 Sudoyumininstallnginx와 같은 소프트웨어 패키지를 설치하십시오. 2. SudouserAdd-m-s/bin/bashnewuser와 같은 userADD 및 GroupADD 명령을 통해 사용자 및 그룹을 관리합니다. 3. 방화구를 사용하여 SudofiRewall-CMD와 같은 방화벽을 구성하십시오. 4. Sudoyuminstallyum-Cron과 같은 Yum-Cron을 사용하도록 자동 업데이트를 설정하고 apply_updates = 예를 구성하십시오.

Navicat에서 SQL을 수행하는 단계 : 데이터베이스에 연결하십시오. SQL 편집기 창을 만듭니다. SQL 쿼리 또는 스크립트를 작성하십시오. 실행 버튼을 클릭하여 쿼리 또는 스크립트를 실행하십시오. 결과를 봅니다 (쿼리가 실행 된 경우).

응용 프로그램을 열고 새로운 연결 (Ctrl n)을 선택하여 Navicat에서 새로운 MySQL 연결을 만들 수 있습니다. "MySQL"을 연결 유형으로 선택하십시오. 호스트 이름/IP 주소, 포트, 사용자 이름 및 비밀번호를 입력하십시오. (선택 사항) 고급 옵션을 구성합니다. 연결을 저장하고 연결 이름을 입력하십시오.
