その1:mysqlは動いているか?
$ mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.29 Homebrew
mysql>
その2:connect()でデータベース名が指定されていない。
その3:パスワードが空で正しいか?
>ネットを見て色々やってみたけど
何をしたのですか?