website – I am trying to connect to a phpmyadmin database on mac but I am getting an error message

So, I have the following php script (with the php reference tags which I had to omit as I think this conflicts with the editor on here):

mysqli_connect('localhost', 'login', '(Intentionally omitted the password');

if (mysqli_connect_error()) {
    echo "There was an error connecting to the database";

} else {
    echo "Database connection successful!";


And the error I am getting is the following:

Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘login’@’localhost’ (using password: YES) in /Applications/XAMPP/xamppfiles/htdocs/login_and_registration/page1.php on line 2
There was an error connecting to the database

Admittedly, I am not sure whether I am using the details for the database connection.

I have accessed phpmyadmin from xampp and I don’t believe there is a password per se and the connection according to phpymadmin is localhost but, in any case, regardless of what details I put into the php, the connection does not work.

Does anyone know why this might be or what I might need to do to resolve the issue?

Thank you in advance.

untagged – Germany: Is it legal to connect a gas oven to a gas tank manually?

I have arrived recently in Germany and I want to get a gas oven.

I was wondering if it’s possible to buy the oven, the gas tank, and manually connect them on my own, is this possible legally? Or should I use a professional service?

networking – Windows 10 won’t connect to WiFi after changing subnet

After changing a Ubiquiti Aircube router’s subnet, (router IP, DHCP range etc), windows 10 simply refuses to connect to the WiFi. Phones and tablets are just fine.

I’ve tried ipconfig /renew, restarted everything, and no joy. Surely something to do with routing tables but I’m a bit out of my depth here so would appreciate any help.

When trying to connect, after entering the password, windows 10 says “checking network requirements” then “unable to connect to this network”.

wi fi – How use certificate to connect to Wi-Fi

I have Samsung Galaxy S20 with Android Version 10 installed. I have company provided Cisco Access Point at home. The access point is connected to my home wi-fi router.
In phone’s wi-fi settings i see two networks:
1>MyHome ( My home router wi-fi network)
2>MyCompany (Access point)

Initially when i setup this phone, i installed microsoft intune app and connected to my company’s portal. After connecting to company’s portal, system automatically downloaded certificates and connected to MyCompany Access Point successfully.

I accidentally click on Forget Network for MyCompany, and now i don’t know how to connect back to MyCompany network.
Under settings -> Biometrics and security -> Other Security Settings ->User Certificates i see the ceritificate(s) are there, but i don’t know how to use this to connect to MyCompany n/w

Bitcoin c-lightning node on Synology cannot connect to bitcoind

I’m trying to setup a bitcoin lightning node on my NAS (Synology), following this tutorial:

Unfortunately I get the following error (log):

lightningd: WARNING: default network changing in 2020: please set network=testnet in config!
Could not connect to bitcoind using bitcoin-cli. Is bitcoind running?
Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.

You can verify that your Bitcoin Core installation is ready for use by running:
        $ bitcoin-cli -testnet echo 'hello world'   

2020-06-30T19:45:20.256Z INFO plugin-bcli: Killing plugin: Plugin exited before completing handshake.
The Bitcoin backend died.
lightningd: WARNING: default network changing in 2020: please set network=testnet in config!

My lightning.conf contains the following:


I’ve tried several parameters for bitcoin-rpcconnect (internal ip, external ip of my bitcoin node including the right ports).

Since my bitcoin node is running on mainnet I try to setup the lightning node for mainnet as well.

So does anyone knows what I’m doing wrong?

How can I connect a cassette player to my Android device to record cassette tapes?

I have a OnePlus phone and a cassette player with a headphone jack. I can connect the headphone jack to the USB on my android device using an adapter.

Now how can I capture and record this sound from my android device?

fallback – Best guidance for allowing users to connect via HTTP in case of a certificate error

I’ve coded my app to use https, but if a https transaction fails for any reason, I assume it’s because the server isn’t configured for https, and thereafter start all transactions with http. Seems like that’s a vulnerability. Likewise, a script kiddie using a proxy to intercept the traffic on his client hardware would be able to make all https transactions fail.

I’m told that if someone tries to MITM your app’s HTTPS request then the request should fail (invalid certificate) and your app should fail with an error, not fallback to HTTP. In a world where SSL is reliably available, sure, but maintaining valid SSL certs is a task in itself. For example, letsencrypt recently revoked some of their certificates and forced renewal of same because of some security problem. Aside from revocations, certs are short term and have to be renewed, and the renewal process involves a lot of stitchware, and can fail. If SSL goes down, I don’t want my site to go dark.

What is the best guidance for either:

  1. More reliably maintaining certificates (such that if they do fail, the resulting downtime falls within the “five nines” SLA unavailability window) without it being such a manual headache, or

  2. Allowing the site to continue to work if SSL has failed? Is it easy to allow most activity to proceed using http, but allow known-critical transactions to require https.

Note that no browsers are involved in the scenarios that concern me.

Premium Dedicated servers (a lot of locations and tariffs, full technical support) Connect now!

JustVPS – the recognized leader of a hosting of virtual dedicated servers. The project exists since 2016 and during this time managed to win trust of clients.

We specialize in providing a qualitative hosting on virtual VDS or VPS dedicated servers at low price. Our services are presented only on the basis of virtual servers that allows us to focus on quality of providing this type of a hosting as much as possible.

We set before ourselves a specific goal– to do something one, but to do it qualitatively. We provide only VDS/VPS, Dedicated servers and really we do it at very good level.

Advantages of Dedicated Server from JustVPS:

– the ability to select a configuration of suitable power;

– use of all server resources;

– complete freedom of action due to access at the administrator level;

– lack of “neighbors” on the server;

– technical support 24/7;

– unlimited tariffs;

– a large selection of locations;

– new user-friendly and intuitive payment account;

– payment: Visa, MasterCard, PayPal, AdvCash

ORDER now and pick up the best server at a discount

For all questions, you can always write to us at Our 24/7 support will always answer you and help.

linux – How to use reverse ssh tunnels to connect servers across private networks

I have a system of computers behind a private network A, that I would like to access from my laptop, on private network B. My goal is to be able to access a web server on port 8006, ssh into multiple devices on the network, and preferably access an smb share. I have a server on a public IP that is currently accepting a reverse ssh connection from one of my servers behind network A. At the moment, I am able to ssh into my public server and ssh into localhost on a different user and port and access one of my servers behind network A. I would really like to be able to ssh into a device on the network with only one command, instead of running multiple ssh commands on multiple devices. I have tried connecting to my public server on the port that should pass to the private network, but I am unable to connect and have to ssh into the default port of the server first then ssh into localhost on the correct port. Please ask if you need more info. If anyone can help, I really appreciate it. Thank you!

Note: I know I can use something like OpenVPN or pritunl to access the network remotely, but I would rather be able to expose different parts of the network to the internet through my public server so that I can access things from other computers without downloading a client or script to run to connect to the VPN.