精华内容
下载资源
问答
  • 本地计算机上的MySQL服务启动后停止
    千次阅读
    2021-07-09 09:30:03

    1 报错截图

    1.1 idea链接报错提示

    在这里插入图片描述
    报错信息:

    [08001] Could not create connection to database server. Attempted reconnect 3 times.
     Giving up.
     java.net.ConnectException: Connection refused: connect. 
    

    1.2 手动启动mysql服务报错提示

    在这里插入图片描述
    报错信息:

    MYSQL启动报错:本地计算机上的mysql57服务启动后停止。某些服务在未由.....
    

    2 原因:修改了my.ini配置文件

    至于为何修改my.ini会导致这种错误。未知。

    2.1 my.ini 文件位置

    C:\ProgramData\MySQL\MySQL Server 5.7\my.ini

    原始my.ini内容(mysql57)

    # Other default tuning values
    # MySQL Server Instance Configuration File
    # ----------------------------------------------------------------------
    # Generated by the MySQL Server Instance Configuration Wizard
    #
    #
    # Installation Instructions
    # ----------------------------------------------------------------------
    #
    # On Linux you can copy this file to /etc/my.cnf to set global options,
    # mysql-data-dir/my.cnf to set server-specific options
    # (@localstatedir@ for this installation) or to
    # ~/.my.cnf to set user-specific options.
    #
    # On Windows you should keep this file in the installation directory 
    # of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
    # make sure the server reads the config file use the startup option 
    # "--defaults-file". 
    #
    # To run the server from the command line, execute this in a 
    # command line shell, e.g.
    # mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    #
    # To install the server as a Windows service manually, execute this in a 
    # command line shell, e.g.
    # mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    #
    # And then execute this in a command line shell to start the server, e.g.
    # net start MySQLXY
    #
    #
    # Guidelines for editing this file
    # ----------------------------------------------------------------------
    #
    # In this file, you can use all long options that the program supports.
    # If you want to know the options a program supports, start the program
    # with the "--help" option.
    #
    # More detailed information about the individual options can also be
    # found in the manual.
    #
    # For advice on how to change settings please see
    # https://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
    #
    #
    # CLIENT SECTION
    # ----------------------------------------------------------------------
    #
    # The following options will be read by MySQL client applications.
    # Note that only client applications shipped by MySQL are guaranteed
    # to read this section. If you want your own MySQL client program to
    # honor these values, you need to specify it as an option during the
    # MySQL client library initialization.
    #
    [client]
    
    # pipe=
    
    # socket=MYSQL
    
    port=3306
    
    [mysql]
    no-beep
    
    # default-character-set=
    
    # SERVER SECTION
    # ----------------------------------------------------------------------
    #
    # The following options will be read by the MySQL Server. Make sure that
    # you have installed the server correctly (see above) so it reads this 
    # file.
    #
    # server_type=3
    [mysqld]
    
    # The next three options are mutually exclusive to SERVER_PORT below.
    # skip-networking
    # enable-named-pipe
    # shared-memory
    
    # shared-memory-base-name=MYSQL
    
    # The Pipe the MySQL Server will use
    # socket=MYSQL
    
    # The TCP/IP Port the MySQL Server will listen on
    port=3306
    
    # Path to installation directory. All paths are usually resolved relative to this.
    # basedir="C:/Program Files/MySQL/MySQL Server 5.7/"
    
    # Path to the database root
    datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data
    
    # The default character set that will be used when a new schema or table is
    # created and no character set is defined
    # character-set-server=
    
    # The default storage engine that will be used when create new tables when
    default-storage-engine=INNODB
    
    # Set the SQL mode to strict
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    
    # General and Slow logging.
    log-output=FILE
    
    general-log=0
    
    general_log_file="LENOVO-PC.log"
    
    slow-query-log=1
    
    slow_query_log_file="LENOVO-PC-slow.log"
    
    long_query_time=10
    
    # Error Logging.
    log-error="LENOVO-PC.err"
    
    # ***** Group Replication Related *****
    # Specifies the base name to use for binary log files. With binary logging
    # enabled, the server logs all statements that change data to the binary
    # log, which is used for backup and replication.
    # log-bin
    
    # ***** Group Replication Related *****
    # Specifies the server ID. For servers that are used in a replication topology,
    # you must specify a unique server ID for each replication server, in the
    # range from 1 to 2^32 − 1. “Unique” means that each ID must be different
    # from every other ID in use by any other replication source or replica.
    server-id=1
    # ***** Group Replication Related *****
    # The host name or IP address of the replica to be reported to the source
    # during replica registration. This value appears in the output of SHOW SLAVE HOSTS
    # on the source server. Leave the value unset if you do not want the replica to
    # register itself with the source.
    # report_host=0.0
    
    # ***** Group Replication Related *****
    # Defines the algorithm used to hash the writes extracted during a transaction. If you
    # are using Group Replication, this variable must be set to XXHASH64 because the process
    # of extracting the writes from a transaction is required for conflict detection on all
    # group members.
    # transaction_write_set_extraction=0.0
    lower_case_table_names=1
    
    # Secure File Priv.
    secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"
    
    # The maximum amount of concurrent sessions the MySQL server will
    # allow. One of these connections will be reserved for a user with
    # SUPER privileges to allow the administrator to login even if the
    # connection limit has been reached.
    max_connections=151
    
    # The number of open tables for all threads. Increasing this value
    # increases the number of file descriptors that mysqld requires.
    # Therefore you have to make sure to set the amount of open files
    # allowed to at least 4096 in the variable "open-files-limit" in
    # section [mysqld_safe]
    table_open_cache=2000
    
    # Maximum size for internal (in-memory) temporary tables. If a table
    # grows larger than this value, it is automatically converted to disk
    # based table This limitation is for a single table. There can be many
    # of them.
    tmp_table_size=57M
    
    # How many threads we should keep in a cache for reuse. When a client
    # disconnects, the client's threads are put in the cache if there aren't
    # more than thread_cache_size threads from before.  This greatly reduces
    # the amount of thread creations needed if you have a lot of new
    # connections. (Normally this doesn't give a notable performance
    # improvement if you have a good thread implementation.)
    thread_cache_size=10
    
    #*** MyISAM Specific options
    # The maximum size of the temporary file MySQL is allowed to use while
    # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
    # If the file-size would be bigger than this, the index will be created
    # through the key cache (which is slower).
    myisam_max_sort_file_size=100G
    
    # The size of the buffer that is allocated when sorting MyISAM indexes
    # during a REPAIR TABLE or when creating indexes with CREATE INDEX
    # or ALTER TABLE.
    myisam_sort_buffer_size=104M
    
    # Size of the Key Buffer, used to cache index blocks for MyISAM tables.
    # Do not set it larger than 30% of your available memory, as some memory
    # is also required by the OS to cache rows. Even if you're not using
    # MyISAM tables, you should still set it to 8-64M as it will also be
    # used for internal temporary disk tables.
    key_buffer_size=8M
    
    # Size of the buffer used for doing full table scans of MyISAM tables.
    # Allocated per thread, if a full scan is needed.
    read_buffer_size=64K
    
    read_rnd_buffer_size=256K
    
    #*** INNODB Specific options ***
    # innodb_data_home_dir=
    
    # Use this option if you have a MySQL server with InnoDB support enabled
    # but you do not plan to use it. This will save memory and disk space
    # and speed up some things.
    # skip-innodb
    
    # If set to 1, InnoDB will flush (fsync) the transaction logs to the
    # disk at each commit, which offers full ACID behavior. If you are
    # willing to compromise this safety, and you are running small
    # transactions, you may set this to 0 or 2 to reduce disk I/O to the
    # logs. Value 0 means that the log is only written to the log file and
    # the log file flushed to disk approximately once per second. Value 2
    # means the log is written to the log file at each commit, but the log
    # file is only flushed to disk approximately once per second.
    innodb_flush_log_at_trx_commit=1
    
    # The size of the buffer InnoDB uses for buffering log data. As soon as
    # it is full, InnoDB will have to flush it to disk. As it is flushed
    # once per second anyway, it does not make sense to have it very large
    # (even with long transactions).
    innodb_log_buffer_size=1M
    
    # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
    # row data. The bigger you set this the less disk I/O is needed to
    # access data in tables. On a dedicated database server you may set this
    # parameter up to 80% of the machine physical memory size. Do not set it
    # too large, though, because competition of the physical memory may
    # cause paging in the operating system.  Note that on 32bit systems you
    # might be limited to 2-3.5G of user level memory per process, so do not
    # set it too high.
    innodb_buffer_pool_size=8M
    
    # Size of each log file in a log group. You should set the combined size
    # of log files to about 25%-100% of your buffer pool size to avoid
    # unneeded buffer pool flush activity on log file overwrite. However,
    # note that a larger logfile size will increase the time needed for the
    # recovery process.
    innodb_log_file_size=48M
    
    # Number of threads allowed inside the InnoDB kernel. The optimal value
    # depends highly on the application, hardware as well as the OS
    # scheduler properties. A too high value may lead to thread thrashing.
    innodb_thread_concurrency=17
    
    # The increment size (in MB) for extending the size of an auto-extend InnoDB system tablespace file when it becomes full.
    innodb_autoextend_increment=64
    
    # The number of regions that the InnoDB buffer pool is divided into.
    # For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency,
    # by reducing contention as different threads read and write to cached pages.
    innodb_buffer_pool_instances=8
    
    # Determines the number of threads that can enter InnoDB concurrently.
    innodb_concurrency_tickets=5000
    
    # Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access before
    # it can be moved to the new sublist.
    innodb_old_blocks_time=1000
    
    # It specifies the maximum number of .ibd files that MySQL can keep open at one time. The minimum value is 10.
    innodb_open_files=300
    
    # When this variable is enabled, InnoDB updates statistics during metadata statements.
    innodb_stats_on_metadata=0
    
    # When innodb_file_per_table is enabled (the default in 5.6.6 and higher), InnoDB stores the data and indexes for each newly created table
    # in a separate .ibd file, rather than in the system tablespace.
    innodb_file_per_table=1
    
    # Use the following list of values: 0 for crc32, 1 for strict_crc32, 2 for innodb, 3 for strict_innodb, 4 for none, 5 for strict_none.
    innodb_checksum_algorithm=0
    
    # The number of outstanding connection requests MySQL can have.
    # This option is useful when the main MySQL thread gets many connection requests in a very short time.
    # It then takes some time (although very little) for the main thread to check the connection and start a new thread.
    # The back_log value indicates how many requests can be stacked during this short time before MySQL momentarily
    # stops answering new requests.
    # You need to increase this only if you expect a large number of connections in a short period of time.
    back_log=80
    
    # If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and
    # synchronize unflushed data to disk.
    # This option is best used only on systems with minimal resources.
    flush_time=0
    
    # The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use
    # indexes and thus perform full table scans.
    join_buffer_size=256K
    
    # The maximum size of one packet or any generated or intermediate string, or any parameter sent by the
    # mysql_stmt_send_long_data() C API function.
    max_allowed_packet=4M
    
    # If more than this many successive connection requests from a host are interrupted without a successful connection,
    # the server blocks that host from performing further connections.
    max_connect_errors=100
    
    # Changes the number of file descriptors available to mysqld.
    # You should try increasing the value of this option if mysqld gives you the error "Too many open files".
    open_files_limit=4161
    
    # If you see many sort_merge_passes per second in SHOW GLOBAL STATUS output, you can consider increasing the
    # sort_buffer_size value to speed up ORDER BY or GROUP BY operations that cannot be improved with query optimization
    # or improved indexing.
    sort_buffer_size=256K
    
    # The number of table definitions (from .frm files) that can be stored in the definition cache.
    # If you use a large number of tables, you can create a large table definition cache to speed up opening of tables.
    # The table definition cache takes less space and does not use file descriptors, unlike the normal table cache.
    # The minimum and default values are both 400.
    table_definition_cache=1400
    
    # Specify the maximum size of a row-based binary log event, in bytes.
    # Rows are grouped into events smaller than this size if possible. The value should be a multiple of 256.
    binlog_row_event_max_size=8K
    
    # If the value of this variable is greater than 0, a replica synchronizes its master.info file to disk.
    # (using fdatasync()) after every sync_master_info events.
    sync_master_info=10000
    
    # If the value of this variable is greater than 0, the MySQL server synchronizes its relay log to disk.
    # (using fdatasync()) after every sync_relay_log writes to the relay log.
    sync_relay_log=10000
    
    # If the value of this variable is greater than 0, a replica synchronizes its relay-log.info file to disk.
    # (using fdatasync()) after every sync_relay_log_info transactions.
    sync_relay_log_info=10000
    
    # Load mysql plugins at start."plugin_x ; plugin_y".
    # plugin_load
    
    # The TCP/IP Port the MySQL Server X Protocol will listen on.
    # loose_mysqlx_port=33060
    
    

    2.2 分析报错日志(.err)文件

    文件名称:计算机系统当前用户名.err

    2.2.1 路径

    C:\ProgramData\MySQL\MySQL Server 5.7\Data\X.err

    2.2.2 报错关键信息

    2021-07-09T01:17:30.165400Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2021-07-09T01:17:30.165400Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
    
    2021-07-09T01:17:30.593400Z 0 [ERROR] Fatal error: Illegal or unknown default time zone '’+8:00’'
    2021-07-09T01:17:30.594400Z 0 [ERROR] Fatal error: Failed to initialize ACL/grant/time zones structures or failed to remove temporary table files.
    2021-07-09T01:17:30.595400Z 0 [ERROR] Aborting
    

    这里没有去仔细研究,大概是mysql时区设置错误。
    我前段时间为了解决idea连接数据库报错问题在my.ini添加了一行代码。

    default-time-zone=’+8:00’
    

    3 解决方案,恢复my.ini然后重启

    4 总结,出现以上报错提示,一般是修改了my.ini的问题

    更多相关内容
  • (1) 关闭mysql服务后后再次启动,显示:MySQL服务启动时显示本地计算机上的MySQL服务启动后停止。某些服务在未由其它服务…; (2)cmd窗口输入 net start mysql后显示:mysql服务正在启动mysql服务无法启动 解决...

    两个问题:
    (1) 关闭mysql服务后后再次启动,显示:MySQL服务启动时显示本地计算机上的MySQL服务启动后停止。某些服务在未由其它服务…;
    (2)cmd窗口输入 net start mysql后显示:mysql服务正在启动 ;mysql服务无法启动

    解决方案:
    多半是因为你修改了my.ini文件但是没修改完善,比如修改数据库存储路径到D盘,要注意以下两点:

    1.将修改后的文件保存为以ANSI方式编码:
    在这里插入图片描述

    2.注意有两个地方都要改:
    在这里插入图片描述

    在这里插入图片描述上面是修改存储路径的,然后再修改下面这条(没改这条是很多网络教程我尝试后依然失败的原因):

    在这里插入图片描述
    可以先将c盘里的数据文件拷贝到D盘,然后再改路径,避免数据遗失。
    然后再按照网上普遍介绍的方法,
    先确保mysql服务已经关闭:
    在这里插入图片描述

    然后以管理员身份打开CMD,注意是在你安装mysql的bin路径下,(改动后的my.ini文件也要放在这个路径)
    在这里插入图片描述
    在这里插入图片描述

    最后依次输入如下:

    在这里插入图片描述这样我们就成功实现了既能修改数据库存储路径又能成功启动MYSQL服务的目的,不信的话你可以用mysql workbench 试试看新建个table ,就能欣喜地发现是在D盘发生了改动。
    首发,码字不易,如果各位弟弟觉得有用,求赞。

    展开全文
  • 电脑每次开机启动mysql容易报以下错误。解决:重启。重启不行按如下操作 启动方式1 启动方式2:net start mysql 查看日志:mysqld --console 问题描述: mysql初始化的时候找不到对应的数据库存储目录 解决方法:...

    电脑每次开机启动mysql容易报以下错误。解决:重启。重启不行按如下操作
    启动方式1
    在这里插入图片描述
    启动方式2:net start mysql
    在这里插入图片描述
    查看日志:mysqld --console
    问题描述:
    mysql初始化的时候找不到对应的数据库存储目录
    在这里插入图片描述
    解决方法:
    1、手动删掉自己创建的data文件夹(如果先前数据库中有重要的文件,可以备份一下)
    2、然后再管理员cmd下进入 bin 目录,移除自己的mysqld服务
    3、在cmd的bin目录执行 mysqld --initialize-insecure
    程序会在动MySQL文件夹下创建data文件夹以及对应的文件
    4、bin目录下执行,mysqld --install ,安装mysqld服务
    5、在bin目录下运行net start mysql ,启动mysql服务。
    在这里插入图片描述
    注意:要是在环境变量中配置了,则可以不进入bin目录下。

    展开全文
  • 本文为刚自学MySQL时,个人遇到的问题,方法是经过网络查询取得的,想作为自己成长的笔记。刚安装的MySQL数据库,里面基本没有数据的,所以下面有删除的操作,仅仅为了解决自己在安装操作不谨慎带来的麻烦。因具体...

    读者请注意一下!!!!

    本文为刚自学MySQL时,个人遇到的问题,方法是经过网络查询取得的,想作为自己成长的笔记。刚安装的MySQL数据库,里面基本没有数据的,所以下面有删除的操作,仅仅为了解决自己在安装操作不谨慎带来的麻烦。因具体情况不同,不建议所有人使用。

    重新安装MySQL数据库,由于安装的时候马虎,一路next(事实上,某些地方需要严格的配置,我忘记注意了),导致现在出了很多麻烦。

    错误信息:

    本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动。

    0696bee3c1a23c583736818cacd09a32.png

    我重新在MySQL官网下载社区版mysql-installer-community-5.6.31.0,此版本为免费的。

    以系统用户运行windows服务,注意:在Windows下MySQL服务名为:mysql57。不再是mysql

    解决方法:

    1.首先,你需要把原来的服务删除

    (mysql为你的服务名称,自己可以随便定义的。

    此命令需要进入mysql安装目录下的bin目录运行)

    mysqld --remove mysql

    2.在mysql的根目录下, 清空data目录。

    (如果没有data目录,请自行创建一个空目录,起名为data!)

    2b15f708746361b3da0a8ffc3baa83e4.png

    3.接着执行如下命令:

    mysqld --install mysql --defaults-file=C:\Program Files\MySQL\my.ini

    C:\Program Files\MySQL,路径改成你自己的!这是注册mysql服务!

    4.以管理员的身份执行启动服务命令:

    net start mysql57

    f63adc097629538eea2da025d998f1e5.png

    附加:可以看日志,查看密码设置:

    bc7868bf138f6916185798b7a9d6cd6f.png

    展开全文
  • 最近写一个Java Web的项目,需要用到 mysql 数据库,在计算机管理中启动时,发现 mysql 报错:mysql本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。该问题的解决方式为: 1 ...
  • 启动MySQL时报异常,启动不了怎么办!!! 解决办法 1.将MySQL安装目录下的data文件夹删除(有风险,建议先把data文件夹复制一份) 2.以管理员身份运行命令窗口 3.在命令窗口输入mysqld --...
  • 1进入MySQL安装目录下,找到bin目录 2找到data目录,有就清空,没有就创建一个data目录 3删除mysql服务 mysqld --remove mysql 4重新安装mysql服务 mysqld --install mysql ...6启动mysql服务 net start mysql ...
  • Mysql服务启动后停止MySQL无法正常启动解决办法

    千次阅读 多人点赞 2020-06-08 14:28:31
    启用MySQL服务的时候出现无法正常启动的问题,尝试了各种解决方法,终于成功了!!! 1.services窗口启动MySQL出现下图中的问题,无法启动MySQL cmd窗口启动mysql出现这个问题 解决办法: 1.如果MySQL目录下没有my...
  • 启动mysql 出现"本地计算机上的MYSQL服务启动后停止xxxxx" 出现的问题: 解决步骤 1.在windows控制台输入mysqld --console 回车 出现: 解决方案: 将D:\mysql-8.0.17-winx64\my.ini(mysql安装路径)中 character-...
  • 1、首先以管理员身份启动cmd,要不然服务禁止访问。 2、然后在cmd中输入 mysqld --remove mysql来移除服务。 3、然后进入MySQL安装目录中找到data文件,清空其中全部文件。我的目录是D:\mysql\data,没有data文件...
  • 想把安装在C盘的MySql转移到D盘,把环境都配置好后启动mysql服务时出现问题。
  • 本地计算机上的mysql服务启动后停止

    千次阅读 2020-02-11 16:12:16
    本地计算机上的mysql服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止 方法一 先备份。找到MySQL的data文件夹,把data里的数据库名文件夹以及ibdata1文件复制一份。 删除data文件夹 用管理员身份打开...
  • 安装完 mysql5.7.1无法正常启动 ,文档中记录了解决过程,操作系统windows,按照,注意 mysql5.7之前的版本 和 之后的版本 update 密码时语句不一样,从5.7开始 密 password字段改成了authentication_string
  • 有一天重启完电脑,打开Navicat,突然发现数据库连接不上。 我去?怎么回事?昨天还好好的! 然后查看windows服务中,mysql服务...管理员权限启动小黑窗 然后cd到mysql的bin目录下,运行 mysqld.exe instal...
  • 服务,直接启动MySQL,显示本地计算机上的mysql服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。的告警。 分析原因 回想了下安装过程,可能是在执行mysqld --initialize时未执行完就关闭命令提示符...
  • 我按照如下顺序安装MySQL启动服务: ## 1、把MySQL压缩版安装到H盘下** ![图片说明](https://img-ask.csdn.net/upload/201910/26/1572059174_143218.png) 这是我安装的结果 ## 2、执行:mysqld --...
  • MySQL服务启动时显示:本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动 方法一 把原来的服务删除(此步可能不需要执行) (mysql为你的服务名称,自己可以随便定义的。此命令需要进入...
  • MYSQL8.0.17中出现MySQL服务启动时显示本地计算机上的MySQL服务启动后停止。某些服务在未由其它服务或… 以前使用的 mysql 5 版本的 , 后来更新为 mysql 8 , 因为被时区问题困扰 ,查找博客 对 my.ini 文件进行了...
  • 1、定位问题,查看mysql服务的日志 查看日志命令: 查了下百度 更换命令: mysqld --initialize --user=mysql --console ,mysqld -install ,随后 net start mysql启动成功; 接着查看日志:出现新的问题 ...
  • 问题:在win10服务下手动启动Mysql57(自定义的mysql服务名)报错:本地计算机上的mysql服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。 我的解决方案: 1、以管理员身份打开cmd窗口,用cd命令进入...
  • 安装mysql后启动服务时提示“本地计算机上的mysql服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。”无法启动服务。求教版上先进,该如何解决。 下载的mysql zip压缩包,如何安装mysql等! ...
  • 本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止
  • basedir=E:\学习类\mysql-8.0.12-winx64\mysql-8.0.12-winx64 # 设置mysql数据库的数据的存放目录 datadir=E:\学习类\mysql-8.0.12-winx64\mysql-8.0.12-winx64\Data # 允许最大连接数 max_connect
  • mysql5.7 本地计算机上的mysql 服务启动后停止。 问题: 在cmd 下mysql服务mysql服务无法启动任何错误法启动 服务没有报告任何错误 在服务里面启动是  早上来了发现项目有问题,一般把apache...
  • 主要给大家介绍了MySQL服务自动停止的解决方法,文中给出了详细的解决过程,对大家具有一定的参考学习价值,需要的朋友们下面来一起看看吧。
  • MySQL服务器启动后自动停止

    千次阅读 2021-07-17 18:07:29
    很久没用MySQL,一登陆就碰到这样的问题,查了很多资料,搞了好久终于解决了。...但是我发现我还有其他地方有问题,当我启动的时候,两种方法都报错,提示启动后停止了,如图: 试了很久之后发现这...
  • 我的MySQL启动服务的时候之所以没有启动成功是因为没有my.ini文件。 可以参考这篇文章进行解决(关键是第二步,配置): https://www.cnblogs.com/mlgjb/p/8490307.html 这篇文章没有具体说my.ini放在哪,这里...
  • 解决:mysql服务启动后自动停止

    千次阅读 2021-06-16 15:28:19
    1 删掉mysqlData文件夹 2 使用管理员身份打开cmd 3 进入到mysql的bin目录下 4 执行mysqld --no-defaults --initialize 5 然后再试试启动服务

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 178,021
精华内容 71,208
关键字:

mysql服务启动后停止

mysql 订阅
友情链接: Snap7-VB6.zip