-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lealone-mysql-plugin运行启动以后实际上是重新创建了一个MYSQL的模式 #227
Comments
databases 系统表记录的是底层的数据库,mysql 插件在底层对应一个名叫 mysql 的数据库,这个名叫 mysql 的数据库实际上对应一个 mysql 实例,不用理会它的。 用 mysql 客户端执行 show databases 命令只是显示 schemas 系统表里的数据,因为 mysql 的 database 和 schema 是一个意思。 |
还有lealone-mysql-plugin插件,在每次重启lealone服务以后,就需要再次手动启动mysql插件,这个可以做成在lealone服务启动以后,自动启动mysql插件 |
create、start plugin 命令是用于动态管理插件, sql_engines:
- name: Lealone
enabled: true
parameters: {
# key1: v1,
# key2: v2,
}
- name: MySQL
enabled: true
parameters: {
# key1: v1,
# key2: v2,
}
protocol_server_engines:
- name: TCP
enabled: true
parameters: {
port: 9210,
allow_others: true,
ssl: false
}
- name: MySQL
enabled: true
parameters: {
port: 3306,
allow_others: true,
ssl: false
} |
lealone 6 最新代码已经新增 auto_start 参数用于自动启动插件 用法: create plugin if not exists mysql
implement by 'com.lealone.plugins.mysql.MySQLPlugin'
class path 'E:\lealone\lealone-plugins\mysql\target\lealone-mysql-plugin-6.0.0.jar'
parameters (port=9410, host='127.0.0.1', auto_start=true); auto_start 为 true 时,不再需要执行 start plugin,启动数据库时也会自动启动这个插件。 |
lealone-mysql-plugin运行启动以后实际上是重新创建了一个MYSQL的模式
The text was updated successfully, but these errors were encountered: