Home > Database > Mysql Tutorial > body text

Linux下C连接MySQL找不到MySQL.H的问题

WBOY
Release: 2016-06-07 16:52:36
Original
1202 people have browsed it

在Linux下安装MySQL,我只安装了SERVER安装包和CLIENT安装包,对于平常的使用,这已经足够,但对于要在Linux下进行数据库的开 放

在Linux下安装MySQL,我只安装了SERVER安装包和CLIENT安装包,对于平常的使用,这已经足够,但对于要在Linux下进行数据库的开 放,则还需要安装一个软件包:MySQL-devel包。并且该软件包的版本应该与你之前安装的SERVER及CLIENT包版本一致,否则会出现重复定 义等一大堆问题。我安装所使用的三个文件如下:

MySQL-client-standard-4.1.22-0.rhel4.i386.rpm

MySQL-server-standard-4.1.22-0.rhel4.i386.rpm

MySQL-devel-standard-4.1.22-0.rhel4.i386.rpm

这些文件都可以在MYSQL的官方网站里下载。其中我下载的网页地址为:

附:

安装软件包:rpm -ivh {filename}

卸载软件包:rpm -e {software name}

MYSQL增加新用户:

grant select,insert,update,delete on *.* to admin@"%" Identified by "admin";

给MYSQL增加了一个名为:admin的新用户,密码也为admin。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!