首页 \ 问答 \ mysql 安装,安装后启动mysql成功后,bin目录里面使用 ./mysql

mysql 安装,安装后启动mysql成功后,bin目录里面使用 ./mysql

mysql  安装,安装后启动mysql成功后,bin目录里面使用 ./mysql   进入mysql  shell模式mysql>  模式,如何配置mysql 只要在linux 任何目录下使用mysql  就能进mysql shell模式
更新时间:2023-08-22 19:08

最新回答

安装360卫士,在软件管家里找到后卸载。
好几种安装方法,有二进制安装,yum安装,rpm包安装。
#二进制安装链接
mysql :: mysql 5.6 reference manual :: 2.2 installing mysql on unix/linux using generic binaries
https://dev.mysql.com/doc/refman/5.6/en/binary-installation.html
#yum安装
shell> groupadd mysql
shell> useradd -r -g mysql -s /bin/false mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-version-os.tar.gz
shell> ln -s full-path-to-mysql-version-os mysql
shell> cd mysql
shell> chown -r mysql .
shell> chgrp -r mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -r root .
shell> chown -r mysql data
shell> bin/mysqld_safe --user=mysql &
# next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

#yum安装
mysql :: mysql 5.6 reference manual :: 2.5.1 installing mysql on linux using the mysql yum repository
https://dev.mysql.com/doc/refman/5.6/en/linux-installation-yum-repo.html

#rpm包安装
mysql :: mysql 5.6 reference manual :: 2.5.5 installing mysql on linux using rpm packages from oracle
https://dev.mysql.com/doc/refman/5.6/en/linux-installation-rpm.html

###还可以看看mariadb数据库的安装和使用。
#www.linuxprobe.com/chapter-18.html

相关问答

更多
  • 好几种安装方法,有二进制安装,yum安装,rpm包安装。 #二进制安装链接 MySQL :: MySQL 5.6 Reference Manual :: 2.2 Installing MySQL on Unix/Linux Using Generic Binaries https://dev.mysql.com/doc/refman/5.6/en/binary-installation.html #yum安装 shell> groupadd mysql shell> useradd -r -g mysql ...
  • 第一步:下载mysql 在Linux终端使用wget命令下载网络资源: 网站自己百度找!(也可在windows中下载后传输到Linux) 第二步:解压文件 由于我是在我本机software目录中下载的文件,为了方便管理首先将此文件移动到/usr/local 目录下 mv /software/mysql-5.7.17-linux-glibc2.5-x86_64.tar /usr/local 接下来去到移动后的目录cd /usr/local ,然后解压 tar zxvf mysql-5.7.17-linux-g ...
  • shell> cmake . -DCMAKE_INSTALL_PREFIX=/db/mysql/mysql_57 -DMYSQL_DATADIR=/db/mysql/mysql_57/data CMake Error at CMakeLists.txt:21 (CMAKE_MINIMUM_REQUIRED): CMake 2.8.2 or higher is required. You are running version 2.6.4 -- Configuring incomplete, errors o ...
  • 如何安装mysql5.7[2022-06-06]

    win7 64位下如何安装配置mysql-5.7.4-m14-winx64 1. mysql-5.7.4-m14-winx64.zip下载 2、解压到D:/mysql.(路径自己指定) 3、在D:/mysql/mysql-5.7.4-m14-winx64下新建my.ini配置文件 内容如下: ####################配置文件开始################### # For advice on how to change settings please see # *** DO NOT ...
  • 一、在控制面板程序中卸载mysql软件 二、卸载过后删除C:\Program Files (x86)\MySQL该目录下剩余了所有文件,把mysql文件夹也删了 三、windows+R运行“regedit”文件,打开注册表 四、删除注册表:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL文件夹 五、删除HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Even ...
  • 可以,因为centos系统它是来自于Red Hat Enterprise Linux依照开放源代码规定释出的源代码所编译而成。所以你在官网根据版本号,下载RedHat版本的mysql就可以了,官网地址: http://downloads.mysql.com/archives/community/ 根据你的系统内核选择合适版本的rpm安装包下载安装就可以了。
  • centos7 翻页指令[2022-04-21]

    shift + pageup 上翻 shift + pagedown 下翻 最好用SecureCRT、putty等软件远程登录,更方便
  • yum 安装默认在/var/lib/mysql 查看路径可以使用 ps -ef | grep mysql 查看
  • 1、可以将mysqld放到/etc/init.d 用/etc/init.d/mysqld restart命令重启 (cp mysql-5.5.31/support-files/mysql.server /etc/init.d/mysqld) 2、或者用systemctl systemctl restart mysql 或者 systemctl restart mariadb 3、service mysql restart service mariadb restart
  • 尝试: grant all on *.* to 'root'@'test1.novalocal' identified by 'somepassword' with grant option; MySQL最新版本附带NO_AUTO_CREATE_USER 除非指定了身份验证信息,否则阻止GRANT语句自动创建新用户。 该语句必须使用IDENTIFIED BY或使用IDENTIFIED WITH的身份验证插件指定非空密码。 如果需要使用空白密码,您可以禁用此模式! MySQL Workbench甚至警告说 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)