programing

WAMP WORDPRESS가 MySQL에 연결되지만 Maria에는 연결되지 않음DB

yoursource 2022. 11. 1. 22:27
반응형

WAMP WORDPRESS가 MySQL에 연결되지만 Maria에는 연결되지 않음DB

Wordpress에서 에 대한 연결을 설정할 수 없습니다.MariaDB에만 접속하다MySQL계속 입수:Can’t select database연결하도록 Wordpress를 설정하는 방법MariaDB?

여기에 이미지 설명 입력

MySQL을 비활성화하거나 활성화해도 도움이 되지 않습니다.

여기에 이미지 설명 입력

이것도 안 된다

여기에 이미지 설명 입력

PhpMyAdmin 데이터베이스 뷰는 다음과 같습니다.

됐다.샘플 Config 파일을 다음과 같이 설정하여 저장해야 했습니다.wp_config.php

 // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define( 'DB_NAME', 'wp_db' );

    /** MySQL database username */
    define( 'DB_USER', 'root' );

    /** MySQL database password */
    define( 'DB_PASSWORD', '' );


#Here is the MOST IMPORTANT of all
    /** MySQL hostname */
    define( 'DB_HOST', 'localhost:3307' );#IMPORTAT: Notice the :3307 that is the PORT for MariaDB


    /** Database Charset to use in creating database tables. */
    define( 'DB_CHARSET', 'utf8' );

    /** The Database Collate type. Don't change this if in doubt. */
    define( 'DB_COLLATE', '' );

그리고 Voila! 나는 며칠이고 몇 시간이고 구글을 검색하며 여기저기 머리를 박고 다녔지만, 해결책은 그렇게 간단했다.

언급URL : https://stackoverflow.com/questions/58351486/wamp-wordpress-connects-to-mysql-but-will-not-connect-to-mariadb

반응형