尝试通过MacBook上的XAMPP解决MySQL错误。所有的教程和链接在线适用于Windows

发布于 2025-02-09 05:10:40 字数 1003 浏览 1 评论 0原文

我正在尝试解决每次尝试在浏览器上访问“ localhost/phpmyadmin”时收到的多个错误。

我正在使用XAMPP访问MySQL,以供我开发的WebApp。我有点新手,并且对为什么会发生这种情况非常困惑,因为它最初使我能够创建一个数据库,但突然被锁定了吗?

太令人沮丧了。

我已经附加了我收到的错误以及我的代码外观的图片。

error

代码

请帮助我!

代码在这里:

const express = require('express');
const app = express();
const cors = require('cors');
const dotenv = require('dotenv');
const { response } = require('express');
dotenv.config();


app.use(cors());
app.use(express.json());
app.use(express.urlencoded({extended:false}));


// create
app.post('/insert', (request, response) => {
});



// read
app.get('/getAll',(request,response) => {
    response.json({
        success: true
    });
})

// update 



// delete

app.listen(process.env.PORT, () => console.log('App is Running!'));

I am trying to solve multiple errors that I receive everytime I try to access "localhost/phpmyadmin" on my browser.

I am using XAMPP to access MySql for a webapp that I am developing for fun. I am kinda new to this and am extremely confused as to why this is happening, as it initally allowed me to create a database but I am suddenly locked out?

It's so frustrating.

I've attached a picture of the error I am receiving and also what my code looks like.

Error

Code

Please help me!!

The code is here:

const express = require('express');
const app = express();
const cors = require('cors');
const dotenv = require('dotenv');
const { response } = require('express');
dotenv.config();


app.use(cors());
app.use(express.json());
app.use(express.urlencoded({extended:false}));


// create
app.post('/insert', (request, response) => {
});



// read
app.get('/getAll',(request,response) => {
    response.json({
        success: true
    });
})

// update 



// delete

app.listen(process.env.PORT, () => console.log('App is Running!'));

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文