There is a problem because https://download.bt.cn/soft/mysql/9.0/ubuntu-24-mysql-9.0.tar.gz cannot access the file in this link. `--2024-08-10 17:42:14-- https://node.aapanel.com/install/4/mysql.sh
Resolving node.aapanel.com (node.aapanel.com)... 104.21.79.196, 172.67.171.7, 2606:4700:3031::6815:4fc4, ...
Connecting to node.aapanel.com (node.aapanel.com)|104.21.79.196|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22702 (22K) [application/octet-stream]
Saving to: ‘mysql.sh’
0K .......... .......... .. 100% 49.6M=0s
2024-08-10 17:42:15 (49.6 MB/s) - ‘mysql.sh’ saved [22702/22702]
selecting download node...
https://na1-node.bt.cn
selecting download node...
--2024-08-10 17:42:44-- https://hk1-node.bt.cn/install/4/mysql_new.sh
Resolving hk1-node.bt.cn (hk1-node.bt.cn)... 103.179.243.14
Connecting to hk1-node.bt.cn (hk1-node.bt.cn)|103.179.243.14|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33395 (33K) [application/octet-stream]
Saving to: ‘mysql.sh’
0K .......... .......... .......... .. 100% 145M=0s
2024-08-10 17:42:45 (145 MB/s) - ‘mysql.sh’ saved [33395/33395]
selecting download node...
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
mysql.sh: line 49: rpm: command not found
mysql.sh: line 50: rpm: command not found
Reading package lists...
Building dependency tree...
Reading state information...
cmake is already the newest version (3.28.3-1build7).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
--2024-08-10 17:42:59-- https://download.bt.cn/soft/mysql/9.0/ubuntu-24-mysql-9.0.tar.gz
Resolving download.bt.cn (download.bt.cn)... 103.179.243.14, 2001:19f0:7001:54fc:5400:2ff:fe9b:97f9
Connecting to download.bt.cn (download.bt.cn)|103.179.243.14|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-08-10 17:43:00 ERROR 404: Not Found.
tar: This does not look like a tar archive
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
mysql.sh: line 655: /www/server/mysql/scripts/mysql_install_db: No such file or directory
cp: cannot stat 'support-files/mysql.server': No such file or directory
chmod: cannot access '/etc/init.d/mysqld': No such file or directory
sed: can't read /etc/init.d/mysqld: No such file or directory
sed: can't read /etc/init.d/mysqld: No such file or directory
sed: can't read /etc/init.d/mysqld: No such file or directory
mysql.sh: line 675: /etc/init.d/mysqld: No such file or directory
mysql.sh: line 677: /www/server/mysql/bin/mysqladmin: No such file or directory
mysql.sh: line 682: /etc/init.d/mysqld: No such file or directory
update-rc.d: error: unable to read /etc/init.d/mysqld
DEPRECATION: Loading egg at /www/server/panel/pyenv/lib/python3.12/site-packages/PyMySQL-0.9.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Skipping MySQL-python as it is not installed.
WARNING: Skipping mysqlclient as it is not installed.
Found existing installation: PyMySQL 0.9.3
Uninstalling PyMySQL-0.9.3:
Successfully uninstalled PyMySQL-0.9.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
--2024-08-10 17:43:02-- https://download.bt.cn/install/src/PyMySQL-0.9.3.zip
Resolving download.bt.cn (download.bt.cn)... 103.179.243.14, 2001:19f0:7001:54fc:5400:2ff:fe9b:97f9
Connecting to download.bt.cn (download.bt.cn)|103.179.243.14|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108696 (106K) [application/zip]
Saving to: ‘src.zip’
0K .......... .......... .......... .......... .......... 47% 236K 0s
50K .......... .......... .......... .......... .......... 94% 199K 0s
100K ...... 100% 11.5T=0.5s
2024-08-10 17:43:04 (229 KB/s) - ‘src.zip’ saved [108696/108696]
Archive: src.zip
8eee26692726e7c923186322a68e15e4d98c138e
creating: PyMySQL-0.9.3/
inflating: PyMySQL-0.9.3/.coveragerc
creating: PyMySQL-0.9.3/.github/
inflating: PyMySQL-0.9.3/.github/ISSUE_TEMPLATE.md
inflating: PyMySQL-0.9.3/.gitignore
inflating: PyMySQL-0.9.3/.travis.yml
creating: PyMySQL-0.9.3/.travis/
inflating: PyMySQL-0.9.3/.travis/database.json
inflating: PyMySQL-0.9.3/.travis/docker.json
inflating: PyMySQL-0.9.3/.travis/initializedb.sh
inflating: PyMySQL-0.9.3/CHANGELOG
inflating: PyMySQL-0.9.3/LICENSE
extracting: PyMySQL-0.9.3/MANIFEST.in
inflating: PyMySQL-0.9.3/Pipfile
inflating: PyMySQL-0.9.3/README.rst
creating: PyMySQL-0.9.3/docs/
inflating: PyMySQL-0.9.3/docs/Makefile
inflating: PyMySQL-0.9.3/docs/make.bat
creating: PyMySQL-0.9.3/docs/source/
inflating: PyMySQL-0.9.3/docs/source/conf.py
inflating: PyMySQL-0.9.3/docs/source/index.rst
creating: PyMySQL-0.9.3/docs/source/modules/
inflating: PyMySQL-0.9.3/docs/source/modules/connections.rst
inflating: PyMySQL-0.9.3/docs/source/modules/cursors.rst
inflating: PyMySQL-0.9.3/docs/source/modules/index.rst
creating: PyMySQL-0.9.3/docs/source/user/
inflating: PyMySQL-0.9.3/docs/source/user/development.rst
inflating: PyMySQL-0.9.3/docs/source/user/examples.rst
inflating: PyMySQL-0.9.3/docs/source/user/index.rst
inflating: PyMySQL-0.9.3/docs/source/user/installation.rst
inflating: PyMySQL-0.9.3/docs/source/user/resources.rst
inflating: PyMySQL-0.9.3/example.py
creating: PyMySQL-0.9.3/pymysql/
inflating: PyMySQL-0.9.3/pymysql/init.py
inflating: PyMySQL-0.9.3/pymysql/auth.py
inflating: PyMySQL-0.9.3/pymysql/compat.py
inflating: PyMySQL-0.9.3/pymysql/socketio.py
inflating: PyMySQL-0.9.3/pymysql/charset.py
inflating: PyMySQL-0.9.3/pymysql/connections.py
creating: PyMySQL-0.9.3/pymysql/constants/
inflating: PyMySQL-0.9.3/pymysql/constants/CLIENT.py
inflating: PyMySQL-0.9.3/pymysql/constants/COMMAND.py
inflating: PyMySQL-0.9.3/pymysql/constants/CR.py
inflating: PyMySQL-0.9.3/pymysql/constants/ER.py
inflating: PyMySQL-0.9.3/pymysql/constants/FIELD_TYPE.py
inflating: PyMySQL-0.9.3/pymysql/constants/FLAG.py
inflating: PyMySQL-0.9.3/pymysql/constants/SERVER_STATUS.py
extracting: PyMySQL-0.9.3/pymysql/constants/init.py
inflating: PyMySQL-0.9.3/pymysql/converters.py
inflating: PyMySQL-0.9.3/pymysql/cursors.py
inflating: PyMySQL-0.9.3/pymysql/err.py
inflating: PyMySQL-0.9.3/pymysql/optionfile.py
inflating: PyMySQL-0.9.3/pymysql/protocol.py
creating: PyMySQL-0.9.3/pymysql/tests/
inflating: PyMySQL-0.9.3/pymysql/tests/init.py
inflating: PyMySQL-0.9.3/pymysql/tests/base.py
creating: PyMySQL-0.9.3/pymysql/tests/data/
inflating: PyMySQL-0.9.3/pymysql/tests/data/load_local_data.txt
inflating: PyMySQL-0.9.3/pymysql/tests/data/load_local_warn_data.txt
inflating: PyMySQL-0.9.3/pymysql/tests/test_DictCursor.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_SSCursor.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_basic.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_connection.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_converters.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_cursor.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_err.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_issues.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_load_local.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_nextset.py
inflating: PyMySQL-0.9.3/pymysql/tests/test_optionfile.py
creating: PyMySQL-0.9.3/pymysql/tests/thirdparty/
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/init.py
creating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/init.py
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
inflating: PyMySQL-0.9.3/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_nonstandard.py
inflating: PyMySQL-0.9.3/pymysql/times.py
inflating: PyMySQL-0.9.3/pymysql/util.py
extracting: PyMySQL-0.9.3/requirements.txt
inflating: PyMySQL-0.9.3/runtests.py
inflating: PyMySQL-0.9.3/setup.cfg
inflating: PyMySQL-0.9.3/setup.py
creating: PyMySQL-0.9.3/tests/
extracting: PyMySQL-0.9.3/tests/init.py
inflating: PyMySQL-0.9.3/tests/test_auth.py
inflating: PyMySQL-0.9.3/tox.ini
running install
/www/server/panel/pyenv/lib/python3.12/site-packages/setuptools/distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/www/server/panel/pyenv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
running egg_info
creating PyMySQL.egg-info
writing PyMySQL.egg-info/PKG-INFO
writing dependency_links to PyMySQL.egg-info/dependency_links.txt
writing requirements to PyMySQL.egg-info/requires.txt
writing top-level names to PyMySQL.egg-info/top_level.txt
writing manifest file 'PyMySQL.egg-info/SOURCES.txt'
reading manifest file 'PyMySQL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'PyMySQL.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/pymysql
copying pymysql/err.py -> build/lib/pymysql
copying pymysql/socketio.py -> build/lib/pymysql
copying pymysql/cursors.py -> build/lib/pymysql
copying pymysql/converters.py -> build/lib/pymysql
copying pymysql/optionfile.py -> build/lib/pymysql
copying pymysql/connections.py -> build/lib/pymysql
copying pymysql/times.py -> build/lib/pymysql
copying pymysql/compat.py -> build/lib/pymysql
copying pymysql/protocol.py -> build/lib/pymysql
copying pymysql/util.py -> build/lib/pymysql
copying pymysql/init.py -> build/lib/pymysql
copying pymysql/charset.py -> build/lib/pymysql
copying pymysql/auth.py -> build/lib/pymysql
creating build/lib/pymysql/constants
copying pymysql/constants/CLIENT.py -> build/lib/pymysql/constants
copying pymysql/constants/FIELD_TYPE.py -> build/lib/pymysql/constants
copying pymysql/constants/CR.py -> build/lib/pymysql/constants
copying pymysql/constants/init.py -> build/lib/pymysql/constants
copying pymysql/constants/SERVER_STATUS.py -> build/lib/pymysql/constants
copying pymysql/constants/FLAG.py -> build/lib/pymysql/constants
copying pymysql/constants/COMMAND.py -> build/lib/pymysql/constants
copying pymysql/constants/ER.py -> build/lib/pymysql/constants
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/err.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/socketio.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/cursors.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/converters.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/optionfile.py -> build/bdist.linux-x86_64/egg/pymysql
creating build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/CLIENT.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/FIELD_TYPE.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/CR.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/init.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/SERVER_STATUS.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/FLAG.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/COMMAND.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/constants/ER.py -> build/bdist.linux-x86_64/egg/pymysql/constants
copying build/lib/pymysql/connections.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/times.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/compat.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/protocol.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/util.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/init.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/charset.py -> build/bdist.linux-x86_64/egg/pymysql
copying build/lib/pymysql/auth.py -> build/bdist.linux-x86_64/egg/pymysql
byte-compiling build/bdist.linux-x86_64/egg/pymysql/err.py to err.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/_socketio.py to socketio.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/cursors.py to cursors.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/converters.py to converters.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/optionfile.py to optionfile.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/CLIENT.py to CLIENT.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/FIELD_TYPE.py to FIELD_TYPE.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/CR.py to CR.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/init.py to init.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/SERVER_STATUS.py to SERVER_STATUS.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/FLAG.py to FLAG.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/COMMAND.py to COMMAND.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/constants/ER.py to ER.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/connections.py to connections.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/times.py to times.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/compat.py to compat.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/protocol.py to protocol.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/util.py to util.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/init.py to init.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/charset.py to charset.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/pymysql/auth.py to _auth.cpython-312.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying PyMySQL.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PyMySQL.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PyMySQL.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PyMySQL.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PyMySQL.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/PyMySQL-0.9.3-py3.12.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing PyMySQL-0.9.3-py3.12.egg
Copying PyMySQL-0.9.3-py3.12.egg to /www/server/panel/pyenv/lib/python3.12/site-packages
Adding PyMySQL 0.9.3 to easy-install.pth file
Installed /www/server/panel/pyenv/lib/python3.12/site-packages/PyMySQL-0.9.3-py3.12.egg
Processing dependencies for PyMySQL==0.9.3
Finished processing dependencies for PyMySQL==0.9.3
Reload Bt-Panel.. [32mdone[0m
mysql_root.sh: line 5: /etc/init.d/mysqld: No such file or directory
Changing password...
mysql_root.sh: line 6: mysqld_safe: command not found
mysql_root.sh: line 21: mysql: command not found
mysql_root.sh: line 24: mysql: command not found
mysql_root.sh: line 28: /etc/init.d/mysqld: No such file or directory
The root password set 180a9366ea8feb1a successuful
1
mysql.sh: line 332: /etc/init.d/mysqld: No such file or directory
mysql.sh: line 336: /etc/init.d/mysqld: No such file or directory
mysql.sh: line 338: /www/server/mysql/bin/mysql: No such file or directory
mysql.sh: line 339: /www/server/mysql/bin/mysql: No such file or directory
mysql.sh: line 340: /www/server/mysql/bin/mysql: No such file or directory
|-Successify --- Command executed! ---
`