Skip to content
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

[Impove] Optimize SQL, create database automatically if it doesn't exist #341

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
* limitations under the License.
*/



create database if not exists `datasophon` character set utf8 collate utf8_general_ci;
grant all privileges on *.* to datasophon@"%" identified by 'datasophon' with grant option;
GRANT ALL PRIVILEGES ON *.* TO 'datasophon'@'%';
FLUSH PRIVILEGES;
use `datasophon`;

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

use `datasophon`;

-- ----------------------------
-- Records of t_ddh_access_token
-- ----------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
use `datasophon`;
ALTER TABLE t_ddh_cluster_service_instance_role_group ADD need_restart INT(2);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use `datasophon`;