加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

radius+httpd+php+mysql+dialupadmin总结

发布时间:2016-01-13 17:42:38 所属栏目:Unix 来源:网络整理
导读:RADIUS是一种C/S结构的协议,它的客户端最初就是NAS(Net Access Server)服务器,现在任何运行RADIUS客户端软件的计算机都可以成为RADIUS的客户端。RADIUS协议

12.配置mysql数据库和创建数据库radius

[root@localhost conf]# service mysqld start//启动mysqld服务

[root@localhost conf]mysqladmin -u root password "your password" //两种方法设置root连接mysql的密码。

使用mysql库

mysql> use mysql

修改root密码

mysql> update user set password=password("123456") where user="root";

mysql> flush privileges;

[root@localhost conf]mysql -uroot -p123456 -e "create database radius;" //创建数据库radius

mysql> show databases;

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

| Database           |

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

| information_schema |

| mysql              |

| radius             |

| test               |

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

4 rows in set (0.00 sec)

mysql> use radius;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> show tables;

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

| Tables_in_radius |

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

| nas              |

| radacct          |

| radcheck         |

| radgroupcheck    |

| radgroupreply    |

| radippool        |

| radpostauth      |

| radreply         |

| radusergroup     |

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

9 rows in set (0.01 sec)

[root@localhost mysql]# pwd

/etc/raddb/sql/mysql

[root@localhost mysql]# ls//把带.sql的文件全部倒入radius数据中

admin.sql     cui.conf  dialup.conf  ippool.sql  schema.sql  wimax.sql

counter.conf  cui.sql   ippool.conf  nas.sql     wimax.conf

倒入数据库的方法为:

mysql> show databases;//查看数据库

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

| Database           |

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

| information_schema |

| mysql              |

| radius             |

| test               |

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

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读