Skip to content

Commit

Permalink
fix mysql (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 authored Feb 6, 2025
1 parent 164636d commit eaaba20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function addToPath(newPath) {

// config
const mysqlVersion = '8.0';
const rootPass = 'password';
const rootPass = 'root';
const database = 'public';

// install
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@ jobs:
database: postgres
port: 5432
- name: mysql for ubuntu
uses: mirromutth/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
character set server: 'utf8'
collation server: 'utf8_general_ci'
mysql version: '8.3'
mysql database: 'public'
mysql root password: 'password'
mysql user: 'developer'
run: |
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#mysql
sudo systemctl start mysql.service
mysql -uroot -proot -e "create database public"
- name: Install deps
run: |
make install-deps
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: public
ports:
- "3306:3306"
2 changes: 1 addition & 1 deletion src/14-03.zig
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub fn main() !void {
.database = "public",
.host = "127.0.0.1",
.user = "root",
.password = "password",
.password = "root",
});
defer db.deinit();

Expand Down

0 comments on commit eaaba20

Please sign in to comment.