-
set up eclipse and JDK environment in your local
eclipse : https://www.eclipse.org/downloads/
jdk : https://www.oracle.com/technetwork/java/javase/downloads/index.html
-
download JAVA code in your workspace
git clone https://github.com/forcallinghenney/DBengers.git
-
download MySQL
- go to www.mysql.com - downloads - community
- if Window, download on Windows
- if Mac, go to MySQL community server, download dmg file and install MySQL
-
download MySQL connector
- go to Connector/J
- select platform independent
- download ZIP archive
- install
-
Connect MySQL to Eclipse
- Java Project - Build path - configure build path
- Libraries - add external jars - mysql-connector-java-***.jar
- apply and close
-
Connect MySQL to terminal
- open terminal
Brew install mysql
mysql.server start
mysql_secure_installation
// set password for rootmysql -u root -p
// start mysql- create database
CREATE DATABASE DBengers;
- create table
USE DBengers;
CREATE TABLE ...
-
connect MySQL server with your collaborators for cooperation (for host server owner)
-
set up database access of MySQL
- login to using database
create user username@'%' identified by 'password';
grant all privileges on database.tablename username@'%' identified by 'password';
flush privileges;
-
set up external access
-
open port
$ vim /etc/mysql/my.cnf
- Find
bind-address = 127.0.0.1
statement and comment it #bind-address = 127.0.0.1
-
external access by multiple collaborators
mysql -h 172.17.***.** -u userid -p
enter password
-
-
-
Notifications
You must be signed in to change notification settings - Fork 1
donghyyun/DBengers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published