win2008 R2服务器下修改MySQL 5.5数据库data目录的方法_MySQL
说明:
操作系统:Windows Server 2008 R2
MySQL版本:5.5.25a
MySQL程序安装目录:D:\Program Files\MySQL\MySQL Server 5.5
MySQL数据库默认目录:C:\ProgramData\MySQL\MySQL Server 5.5\data\
需求:修改MySQL数据库目录为D:\Program Files\MySQL\MySQL Server 5.5\data
具体操作:
一、停止MySQL
开始-cmd
net stop mysql55
二、复制原来数据库目录到新目录
1、备份D:\Program Files\MySQL\MySQL Server 5.5\中的data目录为data-bak
2、复制C:\ProgramData\MySQL\MySQL Server 5.5\中的data目录到
D:\Program Files\MySQL\MySQL Server 5.5\目录下
系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容版权所有,转载请注明出处及原文链接
三、修改MySQL配置文件
1、用记事本打开C:\ProgramData\MySQL\MySQL Server 5.5\data\目录下的my.ini
找到datadir="C:\ProgramData\MySQL\MySQL Server 5.5\data"
在前面加#注释掉
在下面添加一行
datadir="D:\Program Files\MySQL\MySQL Server 5.5\data"
修改完成后,保存退出。
2、复制C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.5\目录下的my.ini到
D:\Program Files\MySQL\MySQL Server 5.5\目录下
四、重新启动MySQL
1、开始-cmd
net start mysql55
2、进入MySQL控制台
开始-所有程序-MySQL-MySQL Server 5.5-MySQL 5.5 Command Line Client
提示输入MySQL root账号的密码,输入之后回车,进入MySQL控制台
show variables like '%datadir%'; #查询MySQL数据库存放目录,如下图所示
可以看到MySQL数据库存放目录已经修改为D:\Program Files\MySQL\MySQL Server 5.5\data
至此,Windows Server 2008 R2下修改MySQL 5.5数据库目录完成
以上就是win2008 R2服务器下修改MySQL 5.5数据库data目录的方法_MySQL的内容,更多相关内容请关注PHP中文网(www.php.cn)!

data文件夹里面是系统及程序的数据,比如软件的设置和安装包等,Data文件夹中各个文件夹则代表的是不同类型的数据存放文件夹,无论Data文件指的是文件名Data还是扩展名data,都是系统或程序自定义的数据文件,Data是数据保存的备份类文件,一般可以用meidaplayer、记事本或word打开。

mysql load data乱码的解决办法:1、找到出现乱码的SQL语句;2、修改语句为“LOAD DATA LOCAL INFILE "employee.txt" INTO TABLE EMPLOYEE character set utf8;”即可。

区别有:1、xdata通常指的是自变量,data则是指整个数据集;2、xdata主要用于建立数据分析模型,data则是用于进行数据分析和统计;3、xdata通常用于回归分析、方差分析、预测建模,data则可以使用各种统计方法进行分析;4、xdata通常需要进行数据预处理,data则可以包含完整的原始数据。

Everyone and their aunt seem to be hopping aboard the AI train in search of inflated profit margins and marketing hype — just look at AMD's recent Ryzen rebrand as a prime example of this AI hype. A recent study conducted by RAND has found that this

一台核心业务数据库,版本为MySQL8.34社区服务器版。从上线以来,这个数据库服务器的错误日志增增加非常迅猛(如下图所示),每24小时能增加到10多个G的容量。因为有故障报警,也还没有影响到业务的正常访问,有关人员不让重启MySQL服务。鉴于这个情况,我只好设置一个自动计划任务,在每晚的夜间定点清理这些日志。具体的操作时候在系统命令行,执行“crontab-e”,添加如下的文本行:0001***echo>/data/mysql8/data/mysql_db/mysql.log保存并退出编辑模式

不是,vue组件中data必须是一个函数。vue中组件是用来复用的,为了防止data复用,将其定义为函数。vue组件中的data数据都应该是相互隔离,互不影响的,组件每复用一次,data数据就应该被复制一次,之后,当某一处复用的地方组件内data数据被改变时,其他复用地方组件的data数据不受影响,就需要通过data函数返回一个对象作为组件的状态。

Shortly after the launch of the Humane Ai Pin, scathing reviews revealed that the AI gadget was anything but ready for the market, as most of the originally advertised features either didn't work properly or were simply missing, the battery life was

A concerning vulnerability has been revealed in modern computer systems, as per a new study. Federico Larroca at the University of the Republic in Montevideo, Uruguay, and his colleagues have developed an AI model that can reconstruct digital signals


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

Dreamweaver Mac version
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

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

Zend Studio 13.0.1
Powerful PHP integrated development environment
