Navicat mysql 收费_没钱买navicat,就用免费的phpmyadmin吧

首先我不是DBA,无法评论哪个DB管理工具的好坏。

只不过最近做项目有需要对mysql进行大规模操作(不是我操作啊,是开发),他们大都用navicat去操作DB。

我也见识到了navicat的强大。但是navicat是收费的,经常就是用完了navicat就改用navicat premium,试用天数连着用。但总有用完的一天,所以我就开始搜索有什么免费的mysql工具。搜索了一顿,发现免费的真没几个,唯一多的就是这个phpmyadmin了。装了试试看,虽然是web页面管理,但起码该有的功能都有。

网上教程很多,但随着时间点的推进,很多方法显得陈旧和无法使用。

今天记录一次

时间点:2018/7/14

环境:centos7.5 php5.6 http mariadb

1.mariadb安装

从centos7开始centos里默认有的是mariadb。

# yum安装

yum install -y mariadb-server mariadb

# 开启mariadb

systemctl start mariadb

# 设定root密码,没有密码你无法远程登录

mysqladmin -uroot -p password 123456

# 试着看对不对

mysql -uroot -p

[root@localhost pma]# mysql -uroot -p

Enter password:

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 62

Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

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

MariaDB [(none)]> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| mysql |

| mytestdb |

| performance_schema |

| test |

+--------------------+

5 rows in set (0.00 sec)

MariaDB [(none)]>

2.安装http

yum install -y httpd

3.安装php

要注意的是,centos7.5默认的php是5.4,跟phpmyadmin官网的最新版是不够的,需要添加yum源,找个php5.6的

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum install -y php56w php56w-mysql

# 确认php版本

php -v

4.安装配置phpmyadmin

官网下载phpmyadmin,百度搜第一个就是,下载下来是个zip包

# 解压后拷到/var/www/html下,名字太长换个短点

cp /tmp/phpMyAdmin-4.8.2-all-languages /var/www/html

mv /var/www/html/phpMyAdmin-4.8.2-all-languages /var/www/html/pma

# 然后启动httpd

systemctl start httpd

5.浏览器访问和配置

新建服务器

http:///pma/setup

96198d970c0f?from=timeline&isappinstalled=0

image

这次选的本地的,所以默认就可以了

96198d970c0f?from=timeline&isappinstalled=0

image

然后回到概要,点下载,把配置文件下下来,(其实没啥下的,这里已经配置好了)

96198d970c0f?from=timeline&isappinstalled=0

image

登录http:pma

96198d970c0f?from=timeline&isappinstalled=0

image

最后客官要的免费mysql管理工具phpmyadmin就呈现在您面前

96198d970c0f?from=timeline&isappinstalled=0

image

好吧,后面我发现有个软件叫dbeaver,免费

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值