阿里云服务器mysql安装

如何实现阿里云服务器安装mysql以及远程连接 记如何实现阿里云服务器安装mysql以及远程连接阿里云服务器下载安装mysql使用navicat远程连接数据库 阿里云服务器下载安装mysql 1、首先在清理阿里云服务器磁盘(由于之前我的服务器比较混乱,所以我选择了清理磁盘) 我采用了阿里云app进行清理磁盘,选择你需要安装的云服务器实例,暂停运行,并选择磁盘,进行重新初始化磁盘操作(清理磁盘前需要先停止实例)。 2、安装环境(我的是阿里的lin... 阅读详情

一. 安装原因:

想学习下mysql,由于本机缺点东西,装了半天装不好,最后选择了在云上安装mysql,毕竟只是学习用。

二. 登陆你的阿里云或者腾讯云:

# 使用ssh登陆你的云,然后按照提示输入服务器登陆密码即可:

这里写图片描述

三. 下载rpm包:

#服务端下载
wget –c http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com

# 客户端下载
wget –c http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com

# devel包下载
wget –c http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com

四. 安装:

上面步骤下载了三个包,分别保存成了
cdn.mysql.com
cdn.mysql.com.1
cdn.mysql.com.2。
分别使用rpm命令安装:

rpm -ivh cdn.mysql.com
rpm -ivh cdn.mysql.com.1
rpm -ivh cdn.mysql.com.2
  • 如果人品好的话,到着你的mysql就安装完成了

五. 初始化密码:

1. 曲折故事:

本来集的要先启动服务器,然后使用mysql -u root -p;登陆,

然后再使用set password=password('123456);修改密码的,初始化密码再你的根目录下的.一个隐藏文件中,但是我找到那个文件后,输入里面的初始密码并不能成功登陆。

然后搜索说可能mysql服务没有启动,于是service mysql start,但是还是不能登陆。

然后再往上找到了一个神奇多册方法。给大家分享下。

2. 神奇方法:

#1.停止mysql数据库
/etc/init.d/mysqld stop 

#2.执行如下命令
mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 

#3.使用root登录mysql数据库
mysql -u root mysql 

#4.更新root密码
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';

#5.刷新权限 
mysql> FLUSH PRIVILEGES; 

#6.退出mysql
mysql> quit 

#7.重启mysql
/etc/init.d/mysqld restart 

#8.使用root用户重新登录mysql
mysql -uroot -p 
Enter password: <输入新设的密码newpassword>
  • 是的,这个神奇的方法终结了我曲折的追求真理的痛苦。
阿里云服务器安装MySQL 5.7.28版本 阿里云服务器安装MySQL 5.7.28版本 其实网上各种各样安装MySQL的文章都有,我只是写了一篇我觉得比较方便的安装方法,也是为了怕自己以后忘了 1.检查服务器是否已经安装MySQL yum list installed | grep mysql //如果检查出来有的话就使用下面这个命令删除 yum -y remove mysql-libs.x86_64 2. 下载mysql5.7 rpm... 阅读详情

相关推荐

阿里云服务器快速安装Mysql,贴心手把手教你安装,本人踩过很多坑!(我的服务器系统CentOS 7.8 64位)

阿里云服务器快速安装MySQL,全网最贴心教程!

weixin_43954455的博客 7322

软件项目管理期末复习(看这一篇就够了)

软件项目管理考试复习 🔶🔶🔶🔶🔶加了🔶的是考点 第一章软件项目管理概述 1.1.1项目及其特征 项目定义:🔶 项目就是为了创造一个唯一的产品或提供一个唯一的服务而进行的临时性的努力; 是以一套独特而互相联系的任务为前提,有效地利用资源,在一段时间内满足一系列特定目标的多项相关工作的总称。 日常运作和项目的区别: 项目是一次性的,而日常运作是重复进行的。 项目是以目标为导向的,日常运作是通过效率和有效性体现的。 项目是通过项目经理及其团队工作完成的,日常运作是职能式的线性管理。 项目存在大量的变更管理,

qq_50886857的博客 3万+

阿里云服务器的mysql安装

阿里云服务器的mysql下载与安装的完整指南

qq_37441377的博客 6107

STM32F411CEU6实战:用W25Q64存储多张图片,在240x240 LCD上轮播显示(附源码)

本文详细介绍了如何使用STM32F411CEU6通过SPI接口管理W25Q64 Flash中的多张图片,并在240x240 LCD上实现平滑轮播显示。内容涵盖硬件配置、图片存储方案设计、轮播系统实现及性能优化技巧,特别针对SPI传输优化和多图存储管理提供了实用解决方案。附源码,适合嵌入式开发者参考。

weixin_32025789的博客 308

大疆航线文件解析指南:5分钟搞懂KMZ里的template.kml和waylines.wpml区别

本文深入解析大疆无人机航线文件KMZ中template.kml与waylines.wpml的核心区别。template.kml是定义任务框架和全局参数的可编辑模板,而waylines.wpml是包含精确执行指令的最终文件。理解两者差异对于高效规划航线、批量生成任务及进行二次开发至关重要。

sun99的博客 866

阿里云服务器安装配置MySQL(保姆级)

MySQL是一个关系型数据库管理系统,常用于LAMP和LNMP等网站场景中。本教程介绍如何在Linux系统ECS实例上安装、配置以及远程访问MySQL数据库。

星浩的博客 4869

arduino esp8266_Arduino传感器教程 第22章ESP8266 控制 5V 继电器

ESP8266控制5V继电器目录一、NodeMCU二、工作原理本文将使用亚马逊 AlexaEcho 和 ESP8266 控制 5V 继电器。NodeMCUNodeMCU 是一个开源的 IoT 物联网硬件开发板,由于它支持 WIFI 功能且使用方法十分类似 Arduino 开发板,所以近些年获得了越来越多来自全世界的创客朋友们的青睐。NodeMCU 尺寸与 Arduino Nano 类似。...

weixin_39611722的博客 3455

在阿里云服务器上安装MySQL

在阿里云服务器上安装MySQL的基本教程,本次示例以Centos7来示例,具体安装可以根据系统适合的安装包来选择。

decade777555的博客 2687

用友u8服务器优化,用友U8erp软件运行的性能优化方案图文教程

今天一定要给大家分享一下用友U8erp软件运行的性能优化方案图文教程,以下方案来自用友软件官方维护工程师反馈在在处理客户问题的时候,有一类问题较为挠头,就是诸如用友U8服务器效率低下的问题。比如用友U8运行慢,卡住等,我们暂先不提用友U8软件代码、脚本层面本身的性能提升问题,我们只是基于现有用友U8软件版本,在客户现有环境下排查用友U8软件运行的性能瓶颈,并采取一定的技术手段进行性能调校。本文将推...

weixin_39882870的博客 5306

DAVIS前言:事件相机资料调研

Event-Camera 资料集锦 1. 官网资料 假设了你买了事件相机,就可以在以下几个链接了解相关的参数和gui界面安装,如果不喜欢gui界面安装,可以第2节,安装相关的源码驱动。 DVS/DAVIS产品说明 等相关产品的软硬件介绍。 iniVation DV教程文档 给出在不同平台下的dvs-gui界面,可按照其说明进行相应的操作。 另外,Neuromorphic vision com...

Ian的博客 4507

阿里云服务器安装Mysql

文章目录1.更新服务器2.下载Mysql安装包3.安装Mysql4.配置my.cnf5.设置开机启动6.设置开启服务7.查看Mysql默认密码8.登陆Mysql,输入用户名和密码9.修改Mysql登录密码10.开启远程登录,授权root远程登录11.在阿里云安全:防火墙添加端口 因为我是刚买的阿里云服务器,所以上面并没有安装Mysql,如果你已经安装过Mysql,需要把Mysql卸载干净。 1.更新服务器 yum -y update 更新完成最后会出现complete! 2.下载Mysql安装包 rpm

m0_50127633的博客 1314

基于STM32设计的智能水产养殖系统(2025)_359

本设计提出并实现了一种基于STM32F103RCT6微控制器的智能水产养殖控制系统,针对传统水产养殖中人工依赖高、环境参数监测滞后、控制手段单一等问题,集成了TDS水质检测、水温检测、水位监测、自动喂食、自动充氧、换水控制与加热保温等功能。系统采用ESP8266模块实现WIFI联网,通过MQTT协议将关键数据上传至华为云物联网平台,支持Android手机APP和Windows上位机远程监测与控制。同时,系统具备本地LCD数据显示与蜂鸣器异常报警功能,支持本地按键控制操作。整套系统功能完善,响应灵敏,运行稳定

625

阿里云服务器中安装配置MYSQL数据库完整教程

阿里云服务器中安装配置MYSQL数据库完整教程 一、确保服务器系统处于最新状态(这步操作可有可无) **第一步:**确保服务器系统处于最新状态(这步操作可有可无) [root@localhost ~]# yum -y update 如果显示以下内容说明已经更新完成 Replaced: grub2.x86_64 1:2.02-0.64.el7.centos grub2-tools.x86_64 1...

JavaAlliance 4万+

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

Devexpress16.2.6破解工具

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

阿里云服务器安装mysql

阿里云服务器中安装配置MYSQL数据库完整教程 第一步:确保服务器系统处于最新状态(这步操作可有可无) 第二步:首先检查是否已经安装,如果已经安装先删除以前版本,以免安装不成功 [root@Panghl ~]# rpm -qa | grep mysql 或者使用: [root@Panghl ~]# yum list installed | grep mysql 如果安装了的话,就使用下面这条命令删除原先的mysql,举例如下: 第三步:下载MySql安装包 #mysql 8.0...

qq_45441466的博客 1万+

精雕软件(JDpaint) 5.5 绿色版

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

如何在阿里云服务器安装Mysql数据库

阿里云服务器安装Mysql数据库

m0_51173023的博客 8254

深度学习工具包 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")

阿里云服务器mysql的安装_MySQL在阿里云服务器上的在线安装及配置

一、在线安装MySQL购买好阿里云服务器后,使用相关的shell命令就能实现MySQL的在线安装1.下载MySQL软件包wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm2.安装软件包rpm -ivh mysql-community-release-el7-5.noarch.rpm3.安装MySQL服务程序y...

weixin_42298817的博客 211

阿里云服务器mysql位置_MySQL在阿里云服务器上的在线安装及配置

一、在线安装MySQL购买好阿里云服务器后,使用相关的shell命令就能实现MySQL的在线安装1.下载MySQL软件包2.安装软件包rpm -ivh mysql-community-release-el7-5.noarch.rpm3.安装MySQL服务程序yum install mysql-community-server注意,安装过程中出现询问,输入y表示确认。4.完成后重启MySQL服务se...

weixin_35752122的博客 450

阿里云服务器安装MySQL

对于数据库的安全组规则可以快速添加。

Jaylan的博客 199

MySQL在阿里云服务器上的在线安装及配置

一、在线安装MySQL 购买好阿里云服务器后,使用相关的shell命令就能实现MySQL的在线安装 1.下载MySQL软件包 wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 2.安装软件包 rpm -ivh mysql-community-release-el7-5.noarch.rpm 3....

xx666zz的博客 262

阿里云服务器使用docker安装mysql

上一篇文章中,我们已经在阿里云服务器中安装了docker,这篇我们将继续使用docker在云主机中安装mysql。如果你对docker中的命令不了解,那也没有关系,文中使用到的命令我都会带上一点注释信息的。其实docker中安装mysql主要就是做两件事儿:①获取一个mysql的镜像;②让这个镜像在容器中运行起来;那下面我们就用两种方式来试一下吧!

weixin_68458168的博客 2216

阿里云服务器安装MySql

阿里云服务器安装MySql 1、查看:rpm -qa | grep mysql 是否已经安装了mysql 2、如果没有下载安装包 rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm 3、安装mysql 如果出现 (y/n) 全部 y 就好了 yum install -y mysql-server 4、配置mysql 服务为开机自启 systemctl enable mysqld 查看自启设置(enab

Anonymity的博客 1170

阿里云服务器——mysql安装以及使用

一个项目的运行,必不可少地需要数据库 因此下面我来分享一下如何在阿里云服务器上面安装mysql并运行起来。 一,安装mysql 从官网下载安装mysql-serve 使用如下三个命令就算安装完成了 # wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community...

weixin_40523463的博客 783
上一篇: HTTP协议总结
下一篇: (一)mysql——mysql入门
Riyadh_linux
博客等级 码龄11年 11粉丝 32原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值