Quantcast
Channel: echodjb's blog » MySql
Browsing all 4 articles
Browse latest View live

Ubuntu 下用c语言操作MySQL数据库环境的搭建

1、sudo apt-get install mysql-server mysql-client 用sudo netstat -tap | grep mysql 查看服务是否开启,显示: tcp 0 0 localhost.localdomain:mysql *:* LISTEN -如果服务没有运行,可以用 sudo /etc/init.d/mysql restart 开启。 2、安装gui工具...

View Article



Linux mysql 忘记密码的解决办法

今天用到ubuntu的mysql,结果发现密码不记得了,于是便到网上去找方法解决 按照网上的方法这么做了,结果杯具如下: # mysqladmin -uroot -p password 'newpassword' Enter password: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for...

View Article

ubuntu下apache+mysql+php安装

1.安装服务器、数据库以及PHP sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install mysql-server 2. 安装相应的配置项 sudo apt-get install libapache2-mod-php5 sudo apt-get install php5-mysql sudo...

View Article

mongodb 数据库基本操作

查询所有数据库列表   > show dbs 如果想查看当前连接在哪个数据库下面,可以直接输入   > db echodjb 想切换到test数据库下面   > use test switched to db test > db Test 想查看test下有哪些表或者叫collection,可以输入   > show collections system.indexes...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images