In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to uninstall mysql from linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "linux uninstall mysql method" it!
1 description
Mysql++ is the C++ development library provided by the mysql development team for OO programming. It is the C++ encapsulation of the underlying data access API provided by mysql. According to its manual, it is complex and huge, and of course it is more powerful.
Mysql++ provides us with a good database programming interface and is a basic development library developed on Mysql.
2 installation environment
MySql++ current stable release version mysql++ 1.7.9
Our Linux environment is: RedHat 9.0
The software environment that needs to be used:
Gcc 3.2.2-RH9 comes with
Glibc2.3-RH9 comes with
Mysql 4.0.15-RH9 contains 3.23.54 and needs to be upgraded
3 installation of Mysql 4.0.15
To upgrade the software, you should first uninstall the original mysql 3.23.54, whether you can install it using the command:
Rpm-qa | grep mysql
Delete the found mysql-server and mysql-devel-3.23.54a-11 with the following command:
Rpm-e-nodeps mysql*: * represents the specific package name
To ensure that the development header files and libraries of older versions of mysql are deleted, you need to delete them manually:
Rm-fr / usr/lib/mysql
Rm-fr / usr/include/mysql
Download Linux x86 RPM downloads of mysql 4.0.15 from www.mysql.com/downloads/, and download RPM package, which is easy to install on RH9.
Need to download: server, client, libraries, dynamic library package
Use the command after download:
Rpm-ivh specific rpm package name
Install the server. After installing the server, the server starts automatically, and the mysql is installed.
After installing the server, install the client and the development library package in turn.
4 compilation and installation of mysql++ 1.7.9
Mysql++ 1.7.9 is the current stable release version, it can be used with mysql 4.0.15, www.mysql.com provides its rpm direct installation package and source code package, because the website says that rpm compilation and installation package needs to be matched with mysql4.0.12, and the rpm source code package is installed under / usr/src/redhat/SOURCES after installation, feel inconvenient to operate, so download the tar package source code for self-compilation and installation.
Download the source tar.gz package and all gcc patches from www.mysql.com/downloads/api-mysql++.html
The GCC version of RH9 is 3.2.2 and requires three source patches.
The compilation process is as follows:
1. Unlock the source code packet
Gunzip < /... / mysql++-1.7.9.tar.gz | tar xvf-
2. Patch and unlock the patch pack. There are three patches in total.
Gunzip * .patch.gz
In any case, you need to put the generated patch file into the source directory to facilitate patching
Perform the patching process in the source code directory (generally: mysql++-1.7.9):
Patch p1 < mysql++-gcc-3.0.patch
Patch p1 < mysql++-gcc-3.2.patch
Patch p1 < mysql++-gcc-3.2.2.patch
3. Compilation process
First edit. / examples/Makefile.in
Replace @ OBJEXE@ with the character "o" and replace @ EXEEXT@ with a space (this paragraph comes from mysql++ mail list, otherwise there will be errors such as compiling the sample source code without defining target)
Execute the configure command
. / configure-prefix=/usr/mysql++
Where / usr/mysql++ is the install installation directory of the compiled library and header files
Execute the configure in turn after it is executed correctly
Make
Make install
If all is correct, the lib and include directories should be generated under / usr/mysql++, and the compilation and installation will be completed successfully.
The verification program mysql++ can run the example program under examples, at the same time, you can refer to mysql++ manual to quickly master Mysql++.
At this point, I believe you have a deeper understanding of the "linux uninstall mysql method", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.