Skip to content

Commit eaaba20

Browse files
authored
fix mysql (#82)
1 parent 164636d commit eaaba20

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

Diff for: .github/ci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function addToPath(newPath) {
2222

2323
// config
2424
const mysqlVersion = '8.0';
25-
const rootPass = 'password';
25+
const rootPass = 'root';
2626
const database = 'public';
2727

2828
// install

Diff for: .github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,11 @@ jobs:
4141
database: postgres
4242
port: 5432
4343
- name: mysql for ubuntu
44-
uses: mirromutth/[email protected]
4544
if: matrix.os == 'ubuntu-latest'
46-
with:
47-
character set server: 'utf8'
48-
collation server: 'utf8_general_ci'
49-
mysql version: '8.3'
50-
mysql database: 'public'
51-
mysql root password: 'password'
52-
mysql user: 'developer'
45+
run: |
46+
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#mysql
47+
sudo systemctl start mysql.service
48+
mysql -uroot -proot -e "create database public"
5349
- name: Install deps
5450
run: |
5551
make install-deps

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
mysql:
1212
image: mysql:8.0
1313
environment:
14-
MYSQL_ROOT_PASSWORD: "password"
14+
MYSQL_ROOT_PASSWORD: "root"
1515
MYSQL_DATABASE: public
1616
ports:
1717
- "3306:3306"

Diff for: src/14-03.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub fn main() !void {
188188
.database = "public",
189189
.host = "127.0.0.1",
190190
.user = "root",
191-
.password = "password",
191+
.password = "root",
192192
});
193193
defer db.deinit();
194194

0 commit comments

Comments
 (0)