我的电脑里没有mysql服务

2023年 8月 3日 41.0k 0

在我最近使用电脑的过程中,我发现我的电脑里没有安装mysql服务。

我的电脑里没有mysql服务

这对于我来说非常困扰,因为我有一个需要使用mysql数据库的项目。

我尝试了多种方法,比如从官网下载mysql安装包,但是在安装过程中出现了错误。

ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password'' at line 1
mysql_native_password

我也尝试了通过命令行安装mysql服务,但是还是失败了。

sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mysql-server
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 57.2kB of archives.
After this operation, 335kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ jaunty/main mysql-server 5.1.30really5.0.75-0ubuntu10.2 [57.2kB]
Fetched 57.2kB in 1s (51.5kB/s)
Preconfiguring packages ...
Selecting previously deselected package mysql-server.
(Reading database ... 19619 files and directories currently installed.)
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu10.2_all.deb) ...
Processing triggers for man-db ...
Setting up mysql-server (5.1.30really5.0.75-0ubuntu10.2) ...
Starting MySQL database server: mysqld.bin grep: /etc/mysql/debian.cnf: No such file or directory
CHECK TABLE ... for every table in each database
Checking table mysql.servers
mysql.servers OK
Checking table mysql.user
mysql.user OK

现在,我正在寻找更有效的解决方案,以便在我的电脑上安装mysql服务。

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论