mysql 发生系统错误1067的解决方法
今天要把WEB项目打包成EXE,可是在数据库上卡住了。在启动数据库服务的时候发生系统错误 1067。
解决方法如下:1、先删除mysql服务
控制面板->管理工具->服务,先停止mysql服务
开始->运行->输入cmd->sc delete mysql
服务删除
2、修改my.ini
如果没将其创建(以下设置可以参考http://hi.baidu.com/chuyanwu/blog/item/98142a2e7d448d564ec2262c.html一般这个设置都不会错误)
[mysqld]
# set basedir to your installation path
basedir=c:/mysql (mysql所在目录)
# set datadir to the *** of your data directory
datadir=c:/mysql/data (mysql所在目录/data)
[WinMySQLAdmin]
Server=c:/mysql/bin/mysqld-nt.exe
3、启动服务
附:启动服务bat:(放在mysql根目录下)
代码如下:
@echo off
if not exist mysqlServer5\data\%computername%.pid goto startsvr
net stop MySQL
mysqlServer5\bin\mysqld-nt.exe --remove MySQL
:startsvr
echo MySQL服务正在启动.....
mysqlServer5\bin\mysqld-nt.exe --install MySQL --defaults-file="%cd%\my.ini"
net start MySQL
pause
MySQL安装与备份
一、下载MySQL
http://www.mysql.org/downloads
二、安装过程
1、解压缩mysql-noinstall-5.0.51b-win32.zip到一个目录。
假定MYSQL_HOME=C:\mysql-5.0.51b-win32
2、编写mysql的运行配置文件my.ini
my.ini
—————————–
[mysqld]
# 设置mysql的安装目录
basedir=$MYSQL_HOME
# 设置mysql数据库的数据的存放目录,必须是data,或者是\\xxx\data
datadir=$MYSQL_HOME\data
# 设置mysql服务器的字符集
default-character-set=utf8
[client]
# 设置mysql客户端的字符集
default-character-set=gbk
—————————–
3、安装mysql服务
从MS-DOS窗口进入目录C:\mysql-5.0.51b-win32\bin,
(把my.ini放到C:\mysql-5.0.51b-win32\目录下!)
运行如下命令:
mysqld –install MySQL5 –defaults-file=C:\mysql-5.0.51b-win32\my.ini(服务安装成功!但是出现发生系统错误 1067)
mysqld-nt.exe -install(服务安装成功!并成功启动)
4、启动mysql数据库
还在上面的命令窗口里面,输入命令:net start MySQL5
这样就启动了mysql服务。
5、删除服务
执行mysqld –remove MySQL5即可
-------------------------
MySQL备份常常有以下几种方法
1、使用phpmyadmin,不过用这个备份,数据的大小要小于两兆,多了就不好恢复了,对于数据特别小的备份,还是挺管用的!
2、使用程序软件自带的后台备份工具备份,这样备份出来的数据一般是没有大小限制的,备份出来后的还原是需要将该程序在新空间安装一次,然后登陆后台,在后台用其自带的还原工具还原一下就实现了新的数据的导入,比如,象discuz、phpwind、bo-blog……都可以这样备份!
3、使用其他SQL工具软件备份:比较好用的有 帝国备份王 优点,数据库可以大小不受限制,不过程序被zend了,并且备份程序文件很多。
另一个软件为 faisunsql 优点,数据库可以大小不受限制,备份程序就一个文件,导出,导入方便,直接操作数据库。(强烈推荐使用)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The process of starting MySQL in Docker consists of the following steps: Pull the MySQL image to create and start the container, set the root user password, and map the port verification connection Create the database and the user grants all permissions to the database

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

I encountered a tricky problem when developing a small application: the need to quickly integrate a lightweight database operation library. After trying multiple libraries, I found that they either have too much functionality or are not very compatible. Eventually, I found minii/db, a simplified version based on Yii2 that solved my problem perfectly.

The key to installing MySQL elegantly is to add the official MySQL repository. The specific steps are as follows: Download the MySQL official GPG key to prevent phishing attacks. Add MySQL repository file: rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Update yum repository cache: yum update installation MySQL: yum install mysql-server startup MySQL service: systemctl start mysqld set up booting

Installing MySQL on CentOS involves the following steps: Adding the appropriate MySQL yum source. Execute the yum install mysql-server command to install the MySQL server. Use the mysql_secure_installation command to make security settings, such as setting the root user password. Customize the MySQL configuration file as needed. Tune MySQL parameters and optimize databases for performance.

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.
