当前位置: 首页 > news >正文

公司网站开发费用济南兴田德润评价seo搜索优化

公司网站开发费用济南兴田德润评价,seo搜索优化,网站建设需求方案pdf,...无锡网站制作一、下载mysql8.rar解压到C盘(也可以解压到其他位置) 在系统环境变量添加JAVA_HOMEC:\myslq8,并在path中添加%JAVA_HOME%\bin; 二、以管理员身份进入命令窗口 三、修改配置文件指定安装路径和数据库的存放路径 四、键入如下命令初始化并启动mysql服务,然后修改登录…

一、下载mysql8.rar解压到C盘(也可以解压到其他位置)

在系统环境变量添加JAVA_HOME=C:\myslq8,并在path中添加%JAVA_HOME%\bin;

二、以管理员身份进入命令窗口

三、修改配置文件指定安装路径和数据库的存放路径

四、键入如下命令初始化并启动mysql服务,然后修改登录密码

C:\>mysqld --initialize --user=mysql --console
C:\>mysqld -install
C:\>net start MySQL
C:\>mysql -u root -p (回车让输入的密码就是第一个命令后出现的临时密码
mysql> ALTER USER root@localhost IDENTIFIED BY "12345678"; (新修改密码自己指定
mysql> flush privileges;
mysql> exit

五、手动命令建数据库的命令如下

C:\> mysql -u root -p
Enter password: ******** (上面自己修改的新密码
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.28 MySQL Community Server - GPL
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create testdatabase; (创建的数据库为testdatabase
mysql> use testdatabase;  (切换到刚建的数据库
mysql> create table customers (id INT PRIMARY KEY AUTO_INCREMENT,name VARCHAR(255),address VARCHAR(255),city VARCHAR(255)); (创建表customers
mysql> insert into customers (name,address,city) values('张三','海淀区','北京'); (插入新记录
mysql> select * from customers; (显示新记录
+----+--------+-----------+--------+
| id | name   | address   | city   |
+----+--------+-----------+--------+
|  1 | 张三   | 海淀区    | 北京   |
+----+--------+-----------+--------+
1 row in set (0.00 sec)

六、VS2022调试读取源代码如下

// TestMySQL.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//#include <stdio.h>
#include <iostream>
#include "include/mysql.h"using namespace std;
#pragma comment(lib,"lib/libmysql.lib")int main()
{MYSQL mysql;mysql_init(&mysql);if (!(mysql_real_connect(&mysql, "127.0.0.1", "root", "12345678", "testdatabase", 0, NULL, 0))){cout << "Connect database,fail!\n : ";cout << mysql_error(&mysql);exit(-1);}mysql_query(&mysql, "set names gbk");mysql_query(&mysql, "select * from customers where name = '张三'");MYSQL_RES* res = mysql_store_result(&mysql);if (res == NULL){mysql_close(&mysql);cout << mysql_error(&mysql);exit(-1);}MYSQL_ROW row;int count = mysql_num_fields(res);while (row = mysql_fetch_row(res)){for (int kkk = 0; kkk < count; kkk++){cout << row[kkk] << "\t";}cout << endl;}mysql_free_result(res);mysql_close(&mysql);return 0;
}

七、编译时前要把mysql依赖库和包含文件拷贝到工程下

 八、编译后的运行结果如下

 

http://www.zhongyajixie.com/news/3997.html

相关文章:

  • 网站如何做后台留言百度收录批量查询
  • 免费看电视剧的网站2021seo什么职位
  • 长春建站模板评测北京网站建设运营
  • 安卓手机做网站服务器姓名查询
  • 做ppt模板网站有哪些内容电商关键词工具
  • 产品备案查询官网网站seo优化外包
  • 河北住房和城乡建设厅网站关键词排名优化如何
  • html旅游网站制作代码企业培训机构排名前十
  • 韩国的 电子商务网站网络营销公司是做什么的
  • 官方网站建设广州网站建设方案优化
  • 綦江集团网站建设电子商务seo是什么意思
  • 网站建设运营属于经营范围关键词排名怎么上首页
  • 和优网络做的网站感染病毒合肥网络科技有限公司
  • 高端购物网站有趣软文广告经典案例
  • wordpress的优点怎么做seo关键词优化
  • 云南网站开发费用自己接单的平台
  • 网站建设 全包 模板网站收录提交工具
  • 设计排版网站谷歌关键词搜索排名
  • 网站销售如何做业绩网站如何做优化排名
  • 网站制作与美育融合百度关键词排名推广工具
  • 什么事网站建设网站如何才能被百度收录
  • 建设厅培训中心网站sem seo
  • 高端网站开发的公司关键词收录查询工具
  • 网站页面设计代码搜索引擎优化方法与技巧
  • 12360官方网站下载b站推广是什么意思
  • 最先进的无锡网站建设重庆seo整站优化系统
  • 网站群建设的意义免费行情软件app网站下载大全
  • 在哪里建网站珠海关键词优化软件
  • 舞台灯光网站建设南京百度关键字优化价格
  • 不备案怎么做淘宝客网站西安刚刚宣布