mysql no-install tutorial

PyCon 2012:Python 3迁移与virtualenv普及的关键转折点 Python 3迁移并非始于2015年,而是由PyCon 2012这一技术分水岭正式锚定——它标志着生态从‘能用’迈向‘敢用’的质变。其核心原理在于基础设施协同演进:virtualenv的稳定普及解决了依赖隔离难题,PyPI包数量突破7000个构建了可规模化的协作基础,Django 1.4的时区支持则倒逼数据库与部署流程升级。这一系列变化共同降低了Python 3落地的工程成本,使迁移从理论共识转为生产必需。典型应用场景包括老旧Django系统的渐进式升级、共享主机环境下的无权限部署,以及PyPI包元数据合 阅读详情

MySql 免安装版配置方法(windows 环境)


1、下载 mysql

当前使用版(2015/11/3 11:17:58 ) mysql-5.7.9-winx64

根据平台选择对应的版本,压缩包大概 300m 左右。

将以下载的MySQL压缩包解压到自定义目录下,我的解压目录是:

D:\development-tools\database

解压后的目录结构是:

D:\development-tools\database\mysql-5.7.9-winx64

2、新建 my.ini

在解压后的目录下

D:\development-tools\database\mysql-5.7.9-winx64

copy 一份 my-default.ini 文件命名为 my.ini 删除里面内容

主要是为了获得一份 ascll 格式的文件,自己重新建一个 ascll 格式的文件也行

my.ini 文件的内容如下:

[mysqld]
# 设置mysql的安装目录
basedir=D:\\development-tools\\database\\mysql-5.7.9-winx64
# 设置mysql数据库的数据的存放目录,必须是data,或者是\\xxx-data
datadir=D:\\development-tools\\database\\Datafiles-data
# 设置mysql服务器的字符集,默认编码
character_set_server=utf8

[client]
# 端口号
port=3306
# 设置mysql客户端的字符集
default-character-set=utf8

注:实践得出,上述文件应保存AscII格式,否则会报一下错误

error: Found option without preceding group in config file:….


3、添加环境变量

配置路径为 D:\\development-tools\\database\\mysql-5.7.9-winx64\\bin

4、初始化 data 目录

方式一

// 生成带随机密码的 root 用户
mysqld --initialize

查看生成的随机密码方式为:生成的 data 目录下包含一个 xxx.err 文件。
xxx 表示你的【计算机名】。如 MegMitkey.err。
该文件有一行内容为 A temporary password is generated for root@localhost: xxxxx
即密码为 【xxxxx】

在第一次使用随机生成的密码登录后,第一步必须做密码修改操作,否则会抛出异常
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

方式二

// 生成无密码的 root 用户
mysqld --initialize-insecure

若未初始化 data 目录,会出现无法启动 mysql 服务问题

使用 mysqld –console 查看启动信息可以发现明显的 error 信息包含 table xxxx doesn’t exist 此类信息


5、注册 windows 系统服务

  • WIN + R 输入 cmd 进入控制台。使用管理员权限进入

  • 输入命令:

    // 安装 mysql 服务,该服务的名字为 mysql,启动该服务器使用配置文件未 my.ini       
    mysqld -install mysql --defaults-file=D:\development-tools\database\mysql-5.7.9-winx64\my.ini
    

    显示 Service successfully installed. 则注册服务成功。

  • 移除服务命令为:mysqld remove 服务名。如: mysqld remove mysql

6、启动 MySql 服务

方法一: 
    启动服务命令为 net start mysql
方法二: 
    打开管理工具->服务(或在 cmd 中输入 services.msc),找到前面安装MySQL服务定义的名字。
    启动服务。

7、修改 root 账号的密码

进入 cmd 控制台

mysql -uroot -p【密码】

mysql>set password="新密码";
mysql>flush privileges; 
mysql>quit
Python连接MySQL底层原理与生产级实践指南 MySQL与Python的集成是数据应用开发的基础能力,其核心在于理解数据库驱动如何在TCP协议、字符编码、连接生命周期等底层机制上桥接两种技术栈。从MySQL Client/Server通信协议到Python GIL对驱动性能的影响,从utf8mb4编码一致性到连接池中Connection对象与MySQL线程的分离生命周期,这些原理直接决定SQL执行的稳定性、错误可追溯性及高并发下的资源效率。掌握PyMySQL、mysqlclient等驱动的本质差异,合理配置DBUtils连接池,并规范处理时区、大字段、 阅读详情

相关推荐

Python连接MySQL实战:解决2003/1045错误与事务提交陷阱

MySQL与Python集成是数据工程和Web后端开发的基础能力,其核心在于理解数据库服务生命周期、网络连接协议、认证机制及事务控制原理。技术价值体现在避免常见连接失败(如错误码2003、1045)、保障数据一致性(commit缺失导致‘数据消失’)以及提升批量操作性能(executemany替代循环execute)。典型应用场景包括本地开发环境调试(Mac M1+MySQL 8.4)、Docker容器化部署、电商订单系统数据写入及SaaS平台客户信息管理。本文聚焦真实项目中高频卡点,深入解析服务监听状态验

chubaisheng8627的博客 1894

ModuleNotFoundError: No module named ‘mysql‘问题的解决方法

解决方法: 点击terminal然后输入:pip install mysql-connector安装完成即可

weixin_38858749的博客 6011

MySQL CRUD操作入门与实战指南

CRUD(创建、读取、更新、删除)是关系型数据库的核心操作,构成了数据管理的基础。MySQL作为最流行的开源关系型数据库,其CRUD操作严格遵循SQL标准,具有明确的语法结构和执行逻辑。理解这些基础操作不仅能够完成日常的数据管理任务,更是学习事务处理、索引优化等高级技术的前提。在实际开发中,无论是简单的个人博客还是复杂的电商系统,都离不开CRUD操作。通过掌握预处理语句防止SQL注入、合理使用索引提升查询性能等技巧,可以构建更安全高效的数据库应用。本文以用户管理系统为例,详细解析MySQL环境搭建、表结构设

weixin_33910460的博客 339

Funambol with Mysql: how to install (非常好的tutorial)

转自:http://www.venturin.net/2011/12/11/funambol-with-mysql-how-to-install/ 我根据这个文档,成功的实现了Funambol使用Mysql数据库,推荐,推荐!!! “ I’m installing and configuring a funambol server on linux (Debian 64b

陈善 1117

玩转Zabbix智能告警:降噪、排班、认领、升级、IM协同

集成Zabbix告警到FlashDuty,获得告警降噪、智能排班、IM协同等能力

n9ecommunity的博客 1040

基于LightGBM和多模型融合的量化交易研究:沪深300为例【附代码】

📊 数据科学与大数据专业 | 数据分析与模型构建 | 数据驱动决策✨ 专业领域:数据挖掘与清洗大数据处理与存储技术机器学习与深度学习模型数据可视化与报告生成分布式计算与云计算数据安全与隐私保护💡 擅长工具:Python/R/Matlab 数据分析与建模Hadoop/Spark 大数据处理平台SQL数据库管理与优化Tableau/Power BI 数据可视化工具TensorFlow/PyTorch 深度学习框架✅数据科学与大数据技术毕业论文【数据】

lagougongzuoshi的博客 1670

在 BottomSheet 中使用 BottomSheetVirtualizedList:React Native 虚拟化列表与底部弹层手势的预集成方案

`BottomSheetVirtualizedList` 是 `@gorhom/bottom-sheet` 为 React Native 自带 `VirtualizedList` 提供的"开箱即用"版本:它把虚拟化长列表的渲染能力与底部弹层的拖拽、吸附手势深度整合在一起,让开发者无需手动协调滚动事件与弹层手势即可获得顺滑的联动体验。读完本文,你将掌握该组件的 Props 用法、被内部接管(应当规避

gitblog_00961的博客 1103

嵌入式开发:用状态机实现STM32按键消抖,告别阻塞延时

在嵌入式系统开发中,处理异步事件和实时响应是核心挑战。状态机作为一种强大的编程模型,通过定义有限的状态、事件和状态转换规则,将复杂的、非线性的控制逻辑转化为清晰、确定且易于维护的代码结构。其技术价值在于实现逻辑的模块化、异步化和非阻塞化,能显著提升代码的可读性、可扩展性和系统实时性。这一思想广泛应用于协议解析、用户界面交互、传感器数据处理等场景。本文以嵌入式开发中基础的按键处理为例,针对传统“延时消抖”方法会阻塞主循环、影响实时性的痛点,深入讲解如何运用状态机思维重构按键消抖逻辑。通过分析状态机的核心三要素

weixin_33377602的博客 339

How to Install MySQL on CentOS 7

How to Install MySQL on CentOS 7 MySQL is one of the most widely used database management systems for websites and server applications. It’s an essential tool that every webmaster should learn. That’s why in this tutorial, we will show you how to install M

Carl_Zhang 465

【同花顺公式编辑教程】第3章 获取数据

学习同花顺公式编辑器,其提供的数据有量价数据以及财务数据。在本章中,我们讲解了编辑器执行代码的原理,并给出了可调用数据的汇总表。

LiaoYi2016218的博客 1万+

3、流程引擎下载安装与部署

camunda有多种使用方式,此处先使用独立平台的方式部署引擎,这种用法适合分布式,微服务化,多语言异构系统的使用方式。

leyoliu的博客 5521

# lemp install tutorial for centos 6

# lemp install tutorial for centos 6## step 1rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm[nginx]name=ng...

weixin_30709809的博客 84

华为OD机试真题 新系统【查找能被整除的最大整数】

华为OD新系统机试真题【查找能被整除的最大整数】,提供C语言、Java、C++、Python、Go、JavaScript源码实现,并提供完整思路讲解,以及在线OJ模拟做题。华为OD机试真题【查找能被整除的最大整数】

qq_45776114的博客 673

ubuntu14 安装mysql

原文链接: www.linuxidc.com@linuxidc:~$ sudo apt-get install mysql-server [sudo] password for linuxidc: 执行该命令后,系统还会自动安装其它的一些软件,在安装过程中会提示输入mysql的登入密码。 使用Tab键选择确定 上图,要输入两次密码,我这里就输入v,

yuxiayiji的专栏 1841

ESP32 VSCode开发环境配置

ESP32 VSCode开发环境配置

qq_53529450的博客 508

R语言基于机器学习三分类结果、计算三分类混淆矩阵、计算每一个类别对应的特异度(specificity)、灵敏度(sensitivity)、PPV、NPV

R语言基于机器学习三分类结果、计算三分类混淆矩阵、计算每一个类别对应的特异度(specificity)、灵敏度(sensitivity)、PPV、NPV

data+scenario+science+insight 649

A good tutorial to install PHP and configure it with Apache

[url]http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/#installapache[/url]

Valley Rivulet 148

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

How to install latest mysql 5.6 on CentOS7

This is a step by step tutorial of how to install mysql 5.6 on centOS 7. CentOS replaced Mysql with MariaDB in its official yum repository. MariaDB is fine but if you still miss InnoDb and the tuned

u013434493的专栏 671

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

xshell中安装 mysql

使用命令apt-get install mysql-server按照提示安装就OK了安装完以后输入service mysql status --查看mysql服务状态service mysql start --启动mysql的服务标识安装成功

shixiansen6535的博客 2761

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

pip install mysqlclient安装日志

Pip安装:http://www.ttlsa.com/python/how-to-install-and-use-pip-ttlsa/supserset使用教程:https://blog.youkuaiyun.com/qq273681448/article/details/75050513 如果添加数据库保存报 No module named MySQLdb,redhat系统请安装 yum install M...

知识的力量 876

MySQL密码安全终极指南:validate_password插件配置详解

MySQL密码策略配置是数据库安全的重要环节,通过validate_password插件可以有效提升密码强度,防止弱密码攻击。本文将详细介绍如何在Linux-Tutorial中配置MySQL的validate_password插件,实现企业级密码安全管理。🔒 ## 为什么需要MySQL密码策略? 在当今数据安全日益重要的环境下,弱密码是数据库安全的最大威胁之一。MySQL 5.6及以上版本内

gitblog_00339的博客 1080

Python连接MySQL实战:驱动选型、连接池与安全查询

数据库连接是Python后端开发的基础能力,涉及网络协议、字符编码、事务控制与安全防护等核心原理。理解MySQL客户端-服务端通信机制,能有效规避连接超时、中文乱码、SQL注入和事务丢失等高频问题。技术价值在于构建稳定、可观察、生产就绪的数据库交互层——这不仅关乎功能实现,更直接影响系统可用性与数据一致性。典型应用场景包括Web服务数据存取、ETL任务集成、数据分析结果落库等。本文聚焦Python生态下mysql-connector-python与PyMySQL的工程化选型逻辑、轻量级连接池实现、utf8m

aebe49167的博客 309

Ubuntu 安装 MySQL

使用下面的命令安装,只需一些时间,它就会下载许多的文件,所及你要确保你的网络环境良好://第一步会要求你设置root账户密码 sudo apt-get install mysql-server apt-get install mysql-client sudo apt-get install libmysqlclient-dev安装完成之后可以使用如下命令来检查是否安装成功:sudo netstat

勿忘初心 634

Python操作MySQL生产实战:字符集、连接池与参数化防注入

MySQL与Python的集成是Web后端开发的基础能力,其核心在于理解数据库驱动原理、连接生命周期管理及SQL执行安全机制。从字符集配置(如utf8mb4)到连接池调优(maxsize与QPS匹配),再到参数化查询如何通过MySQL协议级预编译抵御SQL注入,每一环节都直接影响系统稳定性与安全性。真实项目中常见的中文乱码、连接泄漏、事务卡死、SSL劫持风险等问题,本质是开发人员对底层协议(如COM_STMT_PREPARE)、服务端配置(wait_timeout、max_allowed_packet)和驱

culuo8053的博客 399

MySQL安装失败:dpkg: error processing package mysql-server (--configure): dependency problem

https://stackoverflow.com/questions/13276088/cant-start-mysql5-5-on-ubuntu-12-04-dpkg-dependency-problems

IT界的小清流 5181
上一篇: spring-boot 即时重新启动(热更替)
下一篇: spring-boot 利用 actuator 动态设置 logging 的日志级别
从不喝茶
博客等级 码龄12年 10粉丝 80原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值