MAC for MySQl installation and library building

Install the
    community version download address: https://dev.mysql.com/downloads/mysql/
    Download file: macOS 10.14 (x86, 64-bit), DMG Archive
installation steps
    1, all the way to the next step to the final custom input MySQL root password

    终端输入
        1、PATH="$PATH":/usr/local/mysql/bin
        2、mysql -u root -p
        3、show databases
        4、set PASSWORD =PASSWORD('123456');
        5、show databases

Database
    character set: utf8/utfmb4 (small in the front, large in the back)
    Sort: utf8_bin: each string is compiled and stored with binary data. It is case-sensitive, and can store binary content
         utf8_general_ci proofreading speed is fast, but the accuracy is slightly worse. (The accuracy is sufficient, generally choose this for database construction)

Java project driver download address:

After successfully installing mysql, the Navicat link error is reported as follows:
    Authentication plugin'caching_sha2_password' cannot be 
    loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_
    password.so, 2): image not found     means
:
probably means that it cannot be loaded Authentication plugin'caching_sha2_password'

Solution
    1. Open mysql preferences and click Initialize Database.
    2. Enter your new password.
    3. Select'Use legacy password'.

Guess you like

Origin blog.csdn.net/qq_37768368/article/details/88688525