The SQL Server End-User License Agreement (EULA) must be accepted before SQL
Server can start. The license terms for this product can be downloaded from
...
然后,连接成功
Mysql
docker pull mysql
提前设置好相关映射文件夹 /mysql/conf & /mysql/data
docker run --name mysql -v /mysql/conf:/etc/mysql/conf.d -v /mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql
进入mysql
docker exec -it mysql mysql -uroot -p123456
报这个错的话,就稍等, 我就是等等就好了
1 2 3
mysql: [Warning] World-writable config file '/etc/mysql/conf.d/my.cnf' is ignored. mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't cdocker exec -it mysql mysql -uroot -p123456 '/var/run/mysqld/mysqld.sock' (2)
报错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
CREATETABLESPACE TSP_JHEMR datafile '/home/oracle/app/oracle/oradata/jhemr/jhemr.dbf' size 20M reuse autoextend on next 5M maxsize unlimited, '/home/oracle/app/oracle/oradata/jhemr/jhemr2.dbf' size 20M reuse autoextend on next 5M maxsize unlimited LOGGING PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT MANUAL FLASHBACK ON;
CREATETABLESPACE TSP_JHDICT DATAFILE '/home/oracle/app/oracle/oradata/jhemr/JHDICT.DBF' size 20M reuse autoextend on next 5M maxsize unlimited LOGGING PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT MANUAL FLASHBACK ON;
创建用户
1 2 3 4 5 6 7 8 9 10
createuser jhemr identified by "jhemr" default tablespace TSP_JHEMR temporary tablespace temp; grantconnectto jhemr; grant resource to jhemr; grant dba to jhemr;
CREATEUSER JHDICT IDENTIFIED BY JHDICT default TABLESPACE TSP_JHDICT; GRANT UNLIMITED TABLESPACE TO JHDICT; GRANTCONNECTTO JHDICT; GRANT RESOURCE TO JHDICT;