mysql:
container_name: mysql_laravel9
image: mysql:8
restart: always
environment:
# - "MYSQL_ROOT_PASSWORD=root;"
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: secret
MYSQL_PASSWORD: secret
volumes:
- "./docker/mysql:/var/lib/mysql"
ports:
- "33062:3306"
❯ mysql -h 127.0.0.1 -P 33062 -u root -p
Enter password:
ERROR 2061 (HY000): Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection.
❯ locale -a | grep ru
ru_RU
ru_RU.cp1251
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
ru_UA.utf8
❯ export LC_ALL=ru_RU.koi8r
❯ echo "какой-то текст" | iconv -f utf-8 -t ascii//TRANSLIT
?????-?? ?????
❯ export LC_ALL=ru_RU.iso88595
❯ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="ru_RU.iso88595"
LC_NUMERIC="ru_RU.iso88595"
LC_TIME="ru_RU.iso88595"
LC_COLLATE="ru_RU.iso88595"
LC_MONETARY="ru_RU.iso88595"
LC_MESSAGES="ru_RU.iso88595"
LC_PAPER="ru_RU.iso88595"
LC_NAME="ru_RU.iso88595"
LC_ADDRESS="ru_RU.iso88595"
LC_TELEPHONE="ru_RU.iso88595"
LC_MEASUREMENT="ru_RU.iso88595"
LC_IDENTIFICATION="ru_RU.iso88595"
LC_ALL=ru_RU.iso88595
❯ echo "какой-то текст" | iconv -f utf-8 -t ascii//TRANSLIT
?????-?? ?????
❯ export LC_ALL=ru_RU
❯ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="ru_RU"
LC_NUMERIC="ru_RU"
LC_TIME="ru_RU"
LC_COLLATE="ru_RU"
LC_MONETARY="ru_RU"
LC_MESSAGES="ru_RU"
LC_PAPER="ru_RU"
LC_NAME="ru_RU"
LC_ADDRESS="ru_RU"
LC_TELEPHONE="ru_RU"
LC_MEASUREMENT="ru_RU"
LC_IDENTIFICATION="ru_RU"
LC_ALL=ru_RU
❯ echo "какой-то текст" | iconv -f utf-8 -t ascii//TRANSLIT
?????-?? ?????
❯ locale
LANG=ru_RU.UTF-8
LANGUAGE=ru
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
❯ export LC_ALL=ru_RU.UTF-8
❯ locale
LANG=ru_RU.UTF-8
LANGUAGE=ru
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8
"action": {
"default_popup": "index.html",
"default_icon": "icons/icon-32.png"
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Comma",
"mac": "Command+Comma"
}
}
}
Захожу в папку с проектом wordpress и вызываю главный скрипт wp.py
https://github.com/seriiserii825/python-libs
https://github.com/seriiserii825/python-wp-files