配置MySQL与卸载MySQL实例操作_MySQL
mysql卸载
bitsCN.com 下面的文章主要描述的是如何正确通过rpm包安装、对MySQL进行配置与卸载,以下就有详细内容对配置MySQL与卸载MySQL(和PHP搭配之最佳组合)的详细操作过程,希望会给你带来一些帮助在此方面。以MySQL(和PHP搭配之最佳组合)-server-4.0.14-0.i386.rpm为例,
放在/data目录下
cd /data
rpm -ivh MySQL(和PHP搭配之最佳组合)-server-4.0.14-0.i386.rpm
安装完成后在/usr/share/MySQL(和PHP搭配之最佳组合)目录中会有一个MySQL(和PHP搭配之最佳组合)的启动脚本MySQL(和PHP搭配之最佳组合).server及示例配置文件等(如my-huge.cnf、my-large.cnf、my-medium.cnf)
拷贝一个示例配置MySQL文件作为MySQL(和PHP搭配之最佳组合)的配置文件:
cp /usr/share/MySQL(和PHP搭配之最佳组合)/my-medium.cnf /etc/my.cnf
rpm包安装完后自动将MySQL(和PHP搭配之最佳组合)安装成系统服务,所以可以使用下面命令启动、停止MySQL(和PHP搭配之最佳组合)
启动MySQL(和PHP搭配之最佳组合)
/etc/init.d/MySQL(和PHP搭配之最佳组合) start 或 service MySQL(和PHP搭配之最佳组合) start
停止MySQL(和PHP搭配之最佳组合)
/etc/init.d/MySQL(和PHP搭配之最佳组合) stop 或 service MySQL(和PHP搭配之最佳组合) stop
到此,MySQL(和PHP搭配之最佳组合)服务就安装配置MySQL完成。
安装MySQL(和PHP搭配之最佳组合)客户端
rpm -ivh MySQL(和PHP搭配之最佳组合)-client-4.0.14-0.i386.rpm
MySQL(和PHP搭配之最佳组合)安装好后目录结构如下:
工具程序在/usr/bin目录中---ls /usr/bin/MySQL(和PHP搭配之最佳组合)*
服务器程序/usr/sbin/MySQL(和PHP搭配之最佳组合)d
数据目录/var/lib/MySQL(和PHP搭配之最佳组合)
默认情况下MySQL(和PHP搭配之最佳组合)将错误日志文件、二进制日志文件及进程文件写在/var/lib/MySQL(和PHP搭配之最佳组合)目录中,如localhost.err、localhost.pid、localhost-bin.001等
要改变这些情况可以修改/etc/my.cnf文件
如将日志文件写在/var/log目录中,可以在my.cnf文件中加入下面两行:
[MySQL(和PHP搭配之最佳组合)d_safe]
err-log = /var/log/MySQL(和PHP搭配之最佳组合)d.log
有个实用程序/usr/bin/MySQL(和PHP搭配之最佳组合)_install_db,该程序可以用来初始化MySQL(和PHP搭配之最佳组合)数据库,即创建/var/log/MySQL(和PHP搭配之最佳组合)目录,及创建MySQL(和PHP搭配之最佳组合)数据库(MySQL(和PHP搭配之最佳组合)授权表等信息)及test数据库(空库),如果不小心删除了/var/log/MySQL(和PHP搭配之最佳组合)目录可以通过该程序来初始化.
卸载MySQL(和PHP搭配之最佳组合)
rpm -qa|grep -i MySQL(和PHP搭配之最佳组合)
rpm -ev MySQL(和PHP搭配之最佳组合)-server-4.0.14-0 MySQL(和PHP搭配之最佳组合)-client-4.0.14-0
卸载后/var/lib/MySQL(和PHP搭配之最佳组合)中的数据及/etc/my.cnf不会删除,如果确定没用后就手工删除
rm -f /etc/my.cnf
rm -rf /var/lib/MySQL(和PHP搭配之最佳组合)
以上的相关内容就是对配置及卸载MySQL的介绍,望你能有所收获。bitsCN.com

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



1. How can you make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! 1. Activate basic rights and interests: original articles can earn profits by advertising, and videos must be original in horizontal screen mode to earn profits. 2. Activate the rights of 100 fans: if the number of fans reaches 100 fans or above, you can get profits from micro headlines, original Q&A creation and Q&A. 3. Insist on original works: Original works include articles, micro headlines, questions, etc., and are required to be more than 300 words. Please note that if illegally plagiarized works are published as original works, credit points will be deducted, and even any profits will be deducted. 4. Verticality: When writing articles in professional fields, you cannot write articles across fields at will. You will not get appropriate recommendations, you will not be able to achieve the professionalism and refinement of your work, and it will be difficult to attract fans and readers. 5. Activity: high activity,

What are the employment prospects of clinical pharmacy at Harbin Medical University? Although the national employment situation is not optimistic, pharmaceutical graduates still have good employment prospects. Overall, the supply of pharmaceutical graduates is less than the demand. Pharmaceutical companies and pharmaceutical factories are the main channels for absorbing such graduates. The demand for talents in the pharmaceutical industry is also growing steadily. According to reports, in recent years, the supply-demand ratio for graduate students in majors such as pharmaceutical preparations and natural medicinal chemistry has even reached 1:10. Employment direction of clinical pharmacy major: After graduation, students majoring in clinical medicine can engage in medical treatment, prevention, medical research, etc. in medical and health units, medical research and other departments. Employment positions: Medical representative, pharmaceutical sales representative, sales representative, sales manager, regional sales manager, investment manager, product manager, product specialist, nurse

In this article, we will learn how to add articles in HTML5. One of the new segmentation elements in HTML5 is the tag. Articles are represented in HTML using tags. More specifically, the content contained within the element is different from the rest of the site's content (even though they may be related). Let us consider the following example to understand how to add an article in HTML5 Example 1 In the following example, we are using inline styles in the article element. <!DOCTYPEhtml><html><body><articlestyle="width:300px;border:2pxsolidgray;padding:

Recently, some friends reported how to download win10 image files. Because there are so many image files on the market, what should I do if I want to find a regular file to download? Today, the editor has brought you the link to download the image and the detailed solution steps. Let’s take a look at them together. win10 image quick download and installation tutorial download link >>> System Home Ghostwin101909 image 64-bit version v2019.11<<<>>>Win10 image 64-bit v2019.07<<<>>>Win10 image 32-bit v2019.07<< <1. Search through the Internet

How to clean the temp folder As we use the computer, temporary files (temp files) will gradually accumulate. These temporary files are generated when we use the computer, such as cache files when browsing the web, temporary files during software installation, etc. Failure to clean the temp folder for a long time may occupy a large amount of disk space and affect the speed of the computer. Therefore, cleaning the temp folder regularly is a necessary step to maintain computer performance. Below, we will introduce some simple ways to clean the temp folder. Method 1: Manually clean t

How to understand @VitalikButerin’s new article’s thoughts on Ethereum’s expansion? Some people say that Vitalik’s order for Blob Inscription is outrageous. So how do blob packets work? Why is the blob space not being used efficiently after the upgrade in Cancun? DAS data availability sampling in preparation for sharding? In my opinion, the performance of Cancun is usable after the upgrade, and Vitalik is worried about the development of Rollup. Why? Next, let me talk about my understanding: As I have explained many times before, Blob is a temporary data package that is decoupled from EVM calldata and can be directly called by the consensus layer. The direct benefit is that EVM does not need to access the Blob when executing transactions. data, thus resulting in lower execution layer computations

How to reset Win10 system? Nowadays, many friends like to use computers with Win10 system. However, they will inevitably encounter some unsolvable problems when using computers. At this time, you can try to reset the system. So how should you do it? Let’s follow the editor to watch the tutorial on resetting the Win10 system. Users in need should not miss it. Tutorial on resetting the Win10 system 1. Click Windows and select Settings. 2. Click Update and Security. 3. Select Restore. 4. Click Start on the right to reset this computer. The above is the entire content of [How to reset Win10 system - Tutorial on resetting Win10 system]. More exciting tutorials are available on this site!

1. Open your phone, click on the WeChat software, and enter the WeChat home page settings. 2. Find [My] in the lower right corner of WeChat, open it, and enter the [My] page. 3. Click Collection and then open a new page.
